fix animations, fix SlotMap dirty widget panic, set gui scale, set dash to 1080p

[skip ci]
This commit is contained in:
Aleksander
2025-12-26 15:02:08 +01:00
parent dead3f417c
commit 1364a5cb2e
12 changed files with 37 additions and 110 deletions

View File

@@ -1,7 +1,6 @@
use glam::{Vec2, vec2};
use std::sync::Arc;
use testbed::{Testbed, testbed_any::TestbedAny};
use timestep::Timestep;
use tracing_subscriber::EnvFilter;
use tracing_subscriber::filter::LevelFilter;
use tracing_subscriber::layer::SubscriberExt;
@@ -28,6 +27,7 @@ use winit::{
event_loop::ControlFlow,
keyboard::{KeyCode, PhysicalKey},
};
use wlx_common::timestep::Timestep;
use crate::{
rate_limiter::RateLimiter,
@@ -40,7 +40,6 @@ mod assets;
mod profiler;
mod rate_limiter;
mod testbed;
mod timestep;
mod vulkan;
fn init_logging() {
@@ -114,8 +113,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
let mut profiler = profiler::Profiler::new(1000);
let mut frame_index: u64 = 0;
let mut timestep = Timestep::new();
timestep.set_tps(60.0);
let mut timestep = Timestep::new(60.0);
let mut limiter = RateLimiter::new();