GUI: add option for late clear
This commit is contained in:
parent
32c300ff41
commit
402c520276
3 changed files with 19 additions and 1 deletions
|
|
@ -5803,7 +5803,9 @@ bool FurnaceGUI::loop() {
|
|||
}
|
||||
}
|
||||
|
||||
rend->clear(uiColors[GUI_COLOR_BACKGROUND]);
|
||||
if (!settings.renderClearPos) {
|
||||
rend->clear(uiColors[GUI_COLOR_BACKGROUND]);
|
||||
}
|
||||
renderTimeBegin=SDL_GetPerformanceCounter();
|
||||
ImGui::Render();
|
||||
renderTimeEnd=SDL_GetPerformanceCounter();
|
||||
|
|
@ -5821,6 +5823,9 @@ bool FurnaceGUI::loop() {
|
|||
}
|
||||
}
|
||||
rend->present();
|
||||
if (settings.renderClearPos) {
|
||||
rend->clear(uiColors[GUI_COLOR_BACKGROUND]);
|
||||
}
|
||||
|
||||
layoutTimeDelta=layoutTimeEnd-layoutTimeBegin;
|
||||
renderTimeDelta=renderTimeEnd-renderTimeBegin;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue