improve engine_tick

main
Dominik Madarász 2023-10-26 09:38:50 +02:00
parent 71e631b9c8
commit ddf1bfd2bd
3 changed files with 6 additions and 3 deletions

View File

@ -358839,7 +358839,7 @@ int engine_send(const char *cmd, const char *optional_value) {
int engine_tick() { int engine_tick() {
enum { engine_hz = 60 }; enum { engine_hz = 60 };
enum { engine_hz_mid = 18 }; enum { engine_hz_mid = 30 };
enum { engine_hz_low = 5 }; enum { engine_hz_low = 5 };
if( *engine_geti("powersave") ) { if( *engine_geti("powersave") ) {
// adaptive framerate // adaptive framerate
@ -358848,6 +358848,7 @@ int engine_tick() {
window_fps_lock( hz < 5 ? 5 : hz ); window_fps_lock( hz < 5 ? 5 : hz );
} else { } else {
// window_fps_lock( editor_hz ); // window_fps_lock( editor_hz );
window_fps_unlock( );
} }
return 0; return 0;

View File

@ -176,7 +176,7 @@ int engine_send(const char *cmd, const char *optional_value) {
int engine_tick() { int engine_tick() {
enum { engine_hz = 60 }; enum { engine_hz = 60 };
enum { engine_hz_mid = 18 }; enum { engine_hz_mid = 30 };
enum { engine_hz_low = 5 }; enum { engine_hz_low = 5 };
if( *engine_geti("powersave") ) { if( *engine_geti("powersave") ) {
// adaptive framerate // adaptive framerate
@ -185,6 +185,7 @@ int engine_tick() {
window_fps_lock( hz < 5 ? 5 : hz ); window_fps_lock( hz < 5 ? 5 : hz );
} else { } else {
// window_fps_lock( editor_hz ); // window_fps_lock( editor_hz );
window_fps_unlock( );
} }
return 0; return 0;

View File

@ -26863,7 +26863,7 @@ int engine_send(const char *cmd, const char *optional_value) {
int engine_tick() { int engine_tick() {
enum { engine_hz = 60 }; enum { engine_hz = 60 };
enum { engine_hz_mid = 18 }; enum { engine_hz_mid = 30 };
enum { engine_hz_low = 5 }; enum { engine_hz_low = 5 };
if( *engine_geti("powersave") ) { if( *engine_geti("powersave") ) {
// adaptive framerate // adaptive framerate
@ -26872,6 +26872,7 @@ int engine_tick() {
window_fps_lock( hz < 5 ? 5 : hz ); window_fps_lock( hz < 5 ? 5 : hz );
} else { } else {
// window_fps_lock( editor_hz ); // window_fps_lock( editor_hz );
window_fps_unlock( );
} }
return 0; return 0;