mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 07:17:42 -05:00
Add possibility to limit frame to main loop (application/target_fps)
target-fps working, and use fixed physics step before adding physics-fps in project setting Complete implementation of framelimit Conflicts: main/main.cpp
This commit is contained in:
@@ -40,13 +40,12 @@
|
||||
class Main {
|
||||
|
||||
static void print_help(const char* p_binary);
|
||||
|
||||
static uint64_t last_ticks;
|
||||
static uint64_t target_ticks;
|
||||
static float time_accum;
|
||||
static uint32_t frames;
|
||||
static uint32_t frame;
|
||||
static bool force_redraw_requested;
|
||||
|
||||
public:
|
||||
|
||||
static Error setup(const char *execpath,int argc, char *argv[],bool p_second_phase=true);
|
||||
|
||||
Reference in New Issue
Block a user