@@ -177,7 +177,6 @@ struct state_vulkan_sdl2 {
177177 Uint32 sdl_user_new_message_event;
178178
179179 chrono::steady_clock::time_point time{};
180- uint64_t frames = 0 ;
181180
182181 bool deinterlace = false ;
183182 bool fullscreen = false ;
@@ -397,21 +396,9 @@ void display_vulkan_run(void* state) {
397396 while (!s->should_exit ) {
398397 process_events (*s);
399398 try {
400- bool displayed = s->vulkan ->display_queued_image ();
401- if (displayed) {
402- s->frames ++;
403- }
399+ s->vulkan ->display_queued_image ();
404400 }
405401 catch (std::exception& e) { log_and_exit_uv (e); break ; }
406- auto now = chrono::steady_clock::now ();
407- double seconds = chrono::duration<double >{ now - s->time }.count ();
408- if (seconds > 5 ) {
409- double fps = s->frames / seconds;
410- log_msg (LOG_LEVEL_INFO, MOD_NAME " %llu frames in %g seconds = %g FPS\n " ,
411- static_cast <long long unsigned >(s->frames ), seconds, fps);
412- s->time = now;
413- s->frames = 0 ;
414- }
415402 }
416403 SDL_HideWindow (s->window );
417404
@@ -1016,7 +1003,7 @@ const video_display_info display_vulkan_info = {
10161003 display_vulkan_get_property,
10171004 display_vulkan_put_audio_frame,
10181005 display_vulkan_reconfigure_audio,
1019- DISPLAY_NO_GENERIC_FPS_INDICATOR ,
1006+ MOD_NAME ,
10201007};
10211008
10221009} // namespace
0 commit comments