chg: don't render UI in --capture mode

main
Dominik Madarász 2024-04-17 12:46:55 +02:00
parent 20f7a3cfa2
commit c30a73877a
47 changed files with 36 additions and 0 deletions

View File

@ -367703,6 +367703,13 @@ static bool win_debug_visible = true;
static static
void ui_render() { void ui_render() {
// skip UI rendering if capture test is enabled
static uint64_t capture_target; do_once capture_target = optioni("--capture", 0);
if( capture_target ) {
glViewport(0,0,window_width(),window_height()); //@fixme: viewport is incorrect when we bail here
nk_clear(&nk_glfw.ctx);
return;
}
// draw queued menus // draw queued menus
ui_notify_render(); ui_notify_render();
@ -395728,6 +395735,11 @@ static void v4k_post_init(float refresh_rate) {
// preload brdf LUT early // preload brdf LUT early
(void)brdf_lut(); (void)brdf_lut();
uint64_t fps = optioni("--delta", 0);
if( fps ) {
window_fps_lock(fps);
}
} }
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------

View File

@ -51,6 +51,11 @@ static void v4k_post_init(float refresh_rate) {
// preload brdf LUT early // preload brdf LUT early
(void)brdf_lut(); (void)brdf_lut();
uint64_t fps = optioni("--delta", 0);
if( fps ) {
window_fps_lock(fps);
}
} }
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------

View File

@ -1035,6 +1035,13 @@ static bool win_debug_visible = true;
static static
void ui_render() { void ui_render() {
// skip UI rendering if capture test is enabled
static uint64_t capture_target; do_once capture_target = optioni("--capture", 0);
if( capture_target ) {
glViewport(0,0,window_width(),window_height()); //@fixme: viewport is incorrect when we bail here
nk_clear(&nk_glfw.ctx);
return;
}
// draw queued menus // draw queued menus
ui_notify_render(); ui_notify_render();

View File

@ -2243,6 +2243,13 @@ static bool win_debug_visible = true;
static static
void ui_render() { void ui_render() {
// skip UI rendering if capture test is enabled
static uint64_t capture_target; do_once capture_target = optioni("--capture", 0);
if( capture_target ) {
glViewport(0,0,window_width(),window_height()); //@fixme: viewport is incorrect when we bail here
nk_clear(&nk_glfw.ctx);
return;
}
// draw queued menus // draw queued menus
ui_notify_render(); ui_notify_render();
@ -30268,6 +30275,11 @@ static void v4k_post_init(float refresh_rate) {
// preload brdf LUT early // preload brdf LUT early
(void)brdf_lut(); (void)brdf_lut();
uint64_t fps = optioni("--delta", 0);
if( fps ) {
window_fps_lock(fps);
}
} }
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------

Binary file not shown.

Before

Width:  |  Height:  |  Size: 81 KiB

After

Width:  |  Height:  |  Size: 79 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 84 KiB

After

Width:  |  Height:  |  Size: 81 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 229 KiB

After

Width:  |  Height:  |  Size: 226 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 66 KiB

After

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 326 KiB

After

Width:  |  Height:  |  Size: 327 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 898 KiB

After

Width:  |  Height:  |  Size: 79 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 MiB

After

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 420 KiB

After

Width:  |  Height:  |  Size: 419 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 970 KiB

After

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 MiB

After

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 MiB

After

Width:  |  Height:  |  Size: 2.4 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 MiB

After

Width:  |  Height:  |  Size: 1.5 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 118 KiB

After

Width:  |  Height:  |  Size: 102 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 56 KiB

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 968 KiB

After

Width:  |  Height:  |  Size: 963 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 MiB

After

Width:  |  Height:  |  Size: 2.4 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 137 KiB

After

Width:  |  Height:  |  Size: 81 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 157 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 139 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 93 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 320 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 137 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 417 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.4 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 131 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 259 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 123 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 123 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 98 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 942 KiB