chg: don't render UI in --capture mode
|
@ -367703,6 +367703,13 @@ static bool win_debug_visible = true;
|
|||
|
||||
static
|
||||
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
|
||||
ui_notify_render();
|
||||
|
@ -395728,6 +395735,11 @@ static void v4k_post_init(float refresh_rate) {
|
|||
|
||||
// preload brdf LUT early
|
||||
(void)brdf_lut();
|
||||
|
||||
uint64_t fps = optioni("--delta", 0);
|
||||
if( fps ) {
|
||||
window_fps_lock(fps);
|
||||
}
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
|
|
@ -51,6 +51,11 @@ static void v4k_post_init(float refresh_rate) {
|
|||
|
||||
// preload brdf LUT early
|
||||
(void)brdf_lut();
|
||||
|
||||
uint64_t fps = optioni("--delta", 0);
|
||||
if( fps ) {
|
||||
window_fps_lock(fps);
|
||||
}
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
|
|
@ -1035,6 +1035,13 @@ static bool win_debug_visible = true;
|
|||
|
||||
static
|
||||
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
|
||||
ui_notify_render();
|
||||
|
|
12
engine/v4k.c
|
@ -2243,6 +2243,13 @@ static bool win_debug_visible = true;
|
|||
|
||||
static
|
||||
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
|
||||
ui_notify_render();
|
||||
|
@ -30268,6 +30275,11 @@ static void v4k_post_init(float refresh_rate) {
|
|||
|
||||
// preload brdf LUT early
|
||||
(void)brdf_lut();
|
||||
|
||||
uint64_t fps = optioni("--delta", 0);
|
||||
if( fps ) {
|
||||
window_fps_lock(fps);
|
||||
}
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
|
Before Width: | Height: | Size: 81 KiB After Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 84 KiB After Width: | Height: | Size: 81 KiB |
Before Width: | Height: | Size: 229 KiB After Width: | Height: | Size: 226 KiB |
Before Width: | Height: | Size: 66 KiB After Width: | Height: | Size: 33 KiB |
Before Width: | Height: | Size: 326 KiB After Width: | Height: | Size: 327 KiB |
Before Width: | Height: | Size: 898 KiB After Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 1.2 MiB After Width: | Height: | Size: 1.2 MiB |
Before Width: | Height: | Size: 420 KiB After Width: | Height: | Size: 419 KiB |
Before Width: | Height: | Size: 970 KiB After Width: | Height: | Size: 1.2 MiB |
Before Width: | Height: | Size: 1.4 MiB After Width: | Height: | Size: 1.4 MiB |
Before Width: | Height: | Size: 1.9 MiB After Width: | Height: | Size: 2.4 MiB |
Before Width: | Height: | Size: 1.5 MiB After Width: | Height: | Size: 1.5 MiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 118 KiB After Width: | Height: | Size: 102 KiB |
Before Width: | Height: | Size: 56 KiB After Width: | Height: | Size: 38 KiB |
Before Width: | Height: | Size: 968 KiB After Width: | Height: | Size: 963 KiB |
Before Width: | Height: | Size: 2.4 MiB After Width: | Height: | Size: 2.4 MiB |
Before Width: | Height: | Size: 137 KiB After Width: | Height: | Size: 81 KiB |
Before Width: | Height: | Size: 39 KiB |
Before Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 157 KiB |
Before Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 1.3 MiB |
Before Width: | Height: | Size: 7.2 KiB |
Before Width: | Height: | Size: 1.4 MiB |
Before Width: | Height: | Size: 39 KiB |
Before Width: | Height: | Size: 5.6 KiB |
Before Width: | Height: | Size: 139 KiB |
Before Width: | Height: | Size: 93 KiB |
Before Width: | Height: | Size: 320 KiB |
Before Width: | Height: | Size: 137 KiB |
Before Width: | Height: | Size: 417 KiB |
Before Width: | Height: | Size: 1.8 MiB |
Before Width: | Height: | Size: 4.4 MiB |
Before Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 131 KiB |
Before Width: | Height: | Size: 259 KiB |
Before Width: | Height: | Size: 1.9 MiB |
Before Width: | Height: | Size: 123 KiB |
Before Width: | Height: | Size: 123 KiB |
Before Width: | Height: | Size: 98 KiB |
Before Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 942 KiB |