mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Changed debug flag in client
This commit is contained in:
parent
d663da27b5
commit
4ada144164
@ -14,7 +14,7 @@ use common::{
|
||||
state::State,
|
||||
terrain::chonk::ChonkMetrics,
|
||||
};
|
||||
use log::info;
|
||||
use log::{info, log_enabled};
|
||||
use std::{
|
||||
collections::HashMap,
|
||||
net::SocketAddr,
|
||||
@ -25,8 +25,6 @@ use vek::*;
|
||||
|
||||
const SERVER_TIMEOUT: Duration = Duration::from_secs(20);
|
||||
|
||||
const DEBUG_METRICS: bool = true;
|
||||
|
||||
pub enum Event {
|
||||
Chat(String),
|
||||
Disconnect,
|
||||
@ -335,7 +333,7 @@ impl Client {
|
||||
}
|
||||
|
||||
// Output debug metrics
|
||||
if DEBUG_METRICS && self.tick % 600 == 0 {
|
||||
if log_enabled!(log::Level::Info) && self.tick % 600 == 0 {
|
||||
let metrics = self
|
||||
.state
|
||||
.terrain()
|
||||
|
@ -6,7 +6,7 @@ vec3 get_sky_color(vec3 dir, float time_of_day) {
|
||||
const vec3 SKY_TOP = vec3(0.1, 0.5, 1.0);
|
||||
const vec3 SKY_BOTTOM = vec3(0.025, 0.08, 0.2);
|
||||
|
||||
const vec3 SUN_HALO_COLOR = vec3(1.0, 0.7, 0.5);
|
||||
const vec3 SUN_HALO_COLOR = vec3(1.0, 0.7, 0.5) * 0.5;
|
||||
const vec3 SUN_SURF_COLOR = vec3(1.0, 0.9, 0.35) * 200.0;
|
||||
|
||||
float sun_angle_rad = time_of_day * TIME_FACTOR;
|
||||
|
Loading…
Reference in New Issue
Block a user