Restored some of the window awareness previously avail in raylib for the new sokol layer.

Switched frametime_delta32 to frametime_avg_ms.

I'll problably rename it and keept delta32 for actual delta. Reading over the sokol_app code I noticed it uses the avg frametime and definitely want to do that for spike alleviation...
This commit is contained in:
2024-05-22 15:39:19 -04:00
parent 8130faa6ad
commit 368abefccf
6 changed files with 105 additions and 84 deletions

View File

@ -250,7 +250,8 @@ State :: struct {
// The camera is considered the "context" for coodrinate space operations in rendering
cam_context : Camera,
sokol_context : runtime.Context,
sokol_frame_count : i64,
sokol_context : runtime.Context,
}
get_state :: #force_inline proc "contextless" () -> ^ State {