libretro.cpp - limit update_geometry calls

This commit is contained in:
Ryunam 2021-05-23 18:49:18 +02:00
parent ef2b6573d2
commit 999b013aa4

View File

@ -646,12 +646,14 @@ static void run_with_runahead(const int frames)
void retro_run() void retro_run()
{ {
input_poll();
bool updated = false; bool updated = false;
if (environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE_UPDATE, &updated) && updated) if (environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE_UPDATE, &updated) && updated)
{
update_variables(); update_variables();
update_geometry();
input_poll(); }
update_geometry();
bool is_fast_forwarding = false; bool is_fast_forwarding = false;
environ_cb(RETRO_ENVIRONMENT_GET_FASTFORWARDING, &is_fast_forwarding); environ_cb(RETRO_ENVIRONMENT_GET_FASTFORWARDING, &is_fast_forwarding);