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:
		| @@ -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 { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user