mirror of
https://github.com/alacritty/alacritty.git
synced 2024-11-25 14:05:41 -05:00
Reduce info! logging noise
This commit is contained in:
parent
08b5ae52c1
commit
150d5bf98f
3 changed files with 5 additions and 13 deletions
|
@ -144,7 +144,7 @@ impl Display {
|
||||||
.expect("glutin returns window size");
|
.expect("glutin returns window size");
|
||||||
let dpr = window.hidpi_factor();
|
let dpr = window.hidpi_factor();
|
||||||
|
|
||||||
info!("device_pixel_ratio: {}", dpr);
|
debug!("device_pixel_ratio: {}", dpr);
|
||||||
|
|
||||||
let rasterizer = font::Rasterizer::new(dpi.x(), dpi.y(), dpr, config.use_thin_strokes())?;
|
let rasterizer = font::Rasterizer::new(dpi.x(), dpi.y(), dpr, config.use_thin_strokes())?;
|
||||||
|
|
||||||
|
@ -153,7 +153,7 @@ impl Display {
|
||||||
|
|
||||||
// Initialize glyph cache
|
// Initialize glyph cache
|
||||||
let glyph_cache = {
|
let glyph_cache = {
|
||||||
info!("Initializing glyph cache");
|
debug!("Initializing glyph cache");
|
||||||
let init_start = ::std::time::Instant::now();
|
let init_start = ::std::time::Instant::now();
|
||||||
|
|
||||||
let cache = renderer.with_loader(|mut api| {
|
let cache = renderer.with_loader(|mut api| {
|
||||||
|
@ -162,7 +162,7 @@ impl Display {
|
||||||
|
|
||||||
let stop = init_start.elapsed();
|
let stop = init_start.elapsed();
|
||||||
let stop_f = stop.as_secs() as f64 + stop.subsec_nanos() as f64 / 1_000_000_000f64;
|
let stop_f = stop.as_secs() as f64 + stop.subsec_nanos() as f64 / 1_000_000_000f64;
|
||||||
info!("Finished initializing glyph cache in {}", stop_f);
|
debug!("Finished initializing glyph cache in {}", stop_f);
|
||||||
|
|
||||||
cache
|
cache
|
||||||
};
|
};
|
||||||
|
@ -180,7 +180,7 @@ impl Display {
|
||||||
let width = cell_width * dimensions.columns_u32();
|
let width = cell_width * dimensions.columns_u32();
|
||||||
let height = cell_height * dimensions.lines_u32();
|
let height = cell_height * dimensions.lines_u32();
|
||||||
let size = Size { width: Pixels(width), height: Pixels(height) };
|
let size = Size { width: Pixels(width), height: Pixels(height) };
|
||||||
info!("set_inner_size: {}", size);
|
trace!("set_inner_size: {}", size);
|
||||||
|
|
||||||
let viewport_size = Size {
|
let viewport_size = Size {
|
||||||
width: Pixels(width + 2 * config.padding().x as u32),
|
width: Pixels(width + 2 * config.padding().x as u32),
|
||||||
|
@ -188,7 +188,7 @@ impl Display {
|
||||||
};
|
};
|
||||||
window.set_inner_size(&viewport_size);
|
window.set_inner_size(&viewport_size);
|
||||||
renderer.resize(viewport_size.width.0 as _, viewport_size.height.0 as _);
|
renderer.resize(viewport_size.width.0 as _, viewport_size.height.0 as _);
|
||||||
info!("Cell Size: ({} x {})", cell_width, cell_height);
|
debug!("Cell Size: ({} x {})", cell_width, cell_height);
|
||||||
|
|
||||||
let size_info = SizeInfo {
|
let size_info = SizeInfo {
|
||||||
width: viewport_size.width.0 as f32,
|
width: viewport_size.width.0 as f32,
|
||||||
|
|
|
@ -91,12 +91,6 @@ fn run(mut config: Config, options: cli::Options) -> Result<(), Box<Error>> {
|
||||||
// The display manages a window and can draw the terminal
|
// The display manages a window and can draw the terminal
|
||||||
let mut display = Display::new(&config, &options)?;
|
let mut display = Display::new(&config, &options)?;
|
||||||
|
|
||||||
info!(
|
|
||||||
"PTY Dimensions: {:?} x {:?}",
|
|
||||||
display.size().lines(),
|
|
||||||
display.size().cols()
|
|
||||||
);
|
|
||||||
|
|
||||||
// Create the terminal
|
// Create the terminal
|
||||||
//
|
//
|
||||||
// This object contains all of the state about what's being displayed. It's
|
// This object contains all of the state about what's being displayed. It's
|
||||||
|
|
|
@ -964,8 +964,6 @@ impl ShaderProgram {
|
||||||
-1., 1.);
|
-1., 1.);
|
||||||
let projection: [[f32; 4]; 4] = ortho.into();
|
let projection: [[f32; 4]; 4] = ortho.into();
|
||||||
|
|
||||||
info!("width: {}, height: {}", width, height);
|
|
||||||
|
|
||||||
unsafe {
|
unsafe {
|
||||||
gl::UniformMatrix4fv(self.u_projection,
|
gl::UniformMatrix4fv(self.u_projection,
|
||||||
1, gl::FALSE, projection.as_ptr() as *const _);
|
1, gl::FALSE, projection.as_ptr() as *const _);
|
||||||
|
|
Loading…
Reference in a new issue