# HG changeset patch # User Benjamin Golinvaux # Date 1588591051 -7200 # Node ID 875c9a28236e7b9029f1acad638163ca4dac94e9 # Parent 9c5a8cb3d8561322feddc925e0517f24c42977bd Fixed busy CPU in RtViewer diff -r 9c5a8cb3d856 -r 875c9a28236e Samples/Sdl/RtViewer/RtViewerSdl.cpp --- a/Samples/Sdl/RtViewer/RtViewerSdl.cpp Mon May 04 13:17:11 2020 +0200 +++ b/Samples/Sdl/RtViewer/RtViewerSdl.cpp Mon May 04 13:17:31 2020 +0200 @@ -375,9 +375,9 @@ } } } + // Small delay to avoid using 100% of CPU + SDL_Delay(1); } - // Small delay to avoid using 100% of CPU - SDL_Delay(1); } } }