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:
marynate
2014-02-19 23:35:39 +08:00
parent e20e3c9525
commit c0547f5691
6 changed files with 41 additions and 4 deletions

View File

@@ -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);