diff --git a/engine/joint/v4k.h b/engine/joint/v4k.h index cf6cc13..b60a343 100644 --- a/engine/joint/v4k.h +++ b/engine/joint/v4k.h @@ -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); + } } // ---------------------------------------------------------------------------- diff --git a/engine/split/v4k_main.c b/engine/split/v4k_main.c index 73a6653..49bef53 100644 --- a/engine/split/v4k_main.c +++ b/engine/split/v4k_main.c @@ -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); + } } // ---------------------------------------------------------------------------- diff --git a/engine/split/v4k_ui.c b/engine/split/v4k_ui.c index a4fa91a..0da681d 100644 --- a/engine/split/v4k_ui.c +++ b/engine/split/v4k_ui.c @@ -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(); diff --git a/engine/v4k.c b/engine/v4k.c index 5c56383..0e739b5 100644 --- a/engine/v4k.c +++ b/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); + } } // ---------------------------------------------------------------------------- diff --git a/tests/ref/00-loop.png b/tests/ref/00-loop.png index a59cb1d..a02fb95 100644 Binary files a/tests/ref/00-loop.png and b/tests/ref/00-loop.png differ diff --git a/tests/ref/00-script.png b/tests/ref/00-script.png index e049950..c8518d5 100644 Binary files a/tests/ref/00-script.png and b/tests/ref/00-script.png differ diff --git a/tests/ref/01-demo2d.png b/tests/ref/01-demo2d.png index 4826208..93c74f3 100644 Binary files a/tests/ref/01-demo2d.png and b/tests/ref/01-demo2d.png differ diff --git a/tests/ref/01-easing.png b/tests/ref/01-easing.png index 32fff22..4e370d6 100644 Binary files a/tests/ref/01-easing.png and b/tests/ref/01-easing.png differ diff --git a/tests/ref/01-font.png b/tests/ref/01-font.png index 1d9c409..ae0be0d 100644 Binary files a/tests/ref/01-font.png and b/tests/ref/01-font.png differ diff --git a/tests/ref/01-ui.png b/tests/ref/01-ui.png index 6f48706..a02fb95 100644 Binary files a/tests/ref/01-ui.png and b/tests/ref/01-ui.png differ diff --git a/tests/ref/02-ddraw.png b/tests/ref/02-ddraw.png index 9631f96..97cfc04 100644 Binary files a/tests/ref/02-ddraw.png and b/tests/ref/02-ddraw.png differ diff --git a/tests/ref/02-frustum.png b/tests/ref/02-frustum.png index 81096a6..f997aec 100644 Binary files a/tests/ref/02-frustum.png and b/tests/ref/02-frustum.png differ diff --git a/tests/ref/03-anims.png b/tests/ref/03-anims.png index 95bdd18..119b13b 100644 Binary files a/tests/ref/03-anims.png and b/tests/ref/03-anims.png differ diff --git a/tests/ref/04-actor.png b/tests/ref/04-actor.png index 6e7d3a0..41bb1d0 100644 Binary files a/tests/ref/04-actor.png and b/tests/ref/04-actor.png differ diff --git a/tests/ref/06-material.png b/tests/ref/06-material.png index 7fd02af..ff7adeb 100644 Binary files a/tests/ref/06-material.png and b/tests/ref/06-material.png differ diff --git a/tests/ref/06-scene.png b/tests/ref/06-scene.png index 466cce9..aad352f 100644 Binary files a/tests/ref/06-scene.png and b/tests/ref/06-scene.png differ diff --git a/tests/ref/07-netsync.png b/tests/ref/07-netsync.png index 02156c2..16697ac 100644 Binary files a/tests/ref/07-netsync.png and b/tests/ref/07-netsync.png differ diff --git a/tests/ref/07-network.png b/tests/ref/07-network.png index b710efb..9c44a1e 100644 Binary files a/tests/ref/07-network.png and b/tests/ref/07-network.png differ diff --git a/tests/ref/08-audio.png b/tests/ref/08-audio.png index 902aca6..d5a4bb5 100644 Binary files a/tests/ref/08-audio.png and b/tests/ref/08-audio.png differ diff --git a/tests/ref/08-video.png b/tests/ref/08-video.png index f5c35a9..97d3de0 100644 Binary files a/tests/ref/08-video.png and b/tests/ref/08-video.png differ diff --git a/tests/ref/09-cubemap.png b/tests/ref/09-cubemap.png index 8120a97..8650d79 100644 Binary files a/tests/ref/09-cubemap.png and b/tests/ref/09-cubemap.png differ diff --git a/tests/ref/09-shadertoy.png b/tests/ref/09-shadertoy.png index e2f3007..e0c70bf 100644 Binary files a/tests/ref/09-shadertoy.png and b/tests/ref/09-shadertoy.png differ diff --git a/tests/ref/99-billboard.png b/tests/ref/99-billboard.png deleted file mode 100644 index 22e75c9..0000000 Binary files a/tests/ref/99-billboard.png and /dev/null differ diff --git a/tests/ref/99-bt.png b/tests/ref/99-bt.png deleted file mode 100644 index 0475b7f..0000000 Binary files a/tests/ref/99-bt.png and /dev/null differ diff --git a/tests/ref/99-cart.png b/tests/ref/99-cart.png deleted file mode 100644 index 9b20e2f..0000000 Binary files a/tests/ref/99-cart.png and /dev/null differ diff --git a/tests/ref/99-compute.png b/tests/ref/99-compute.png deleted file mode 100644 index 5339e1d..0000000 Binary files a/tests/ref/99-compute.png and /dev/null differ diff --git a/tests/ref/99-controller.png b/tests/ref/99-controller.png deleted file mode 100644 index ffd9526..0000000 Binary files a/tests/ref/99-controller.png and /dev/null differ diff --git a/tests/ref/99-dblclick.png b/tests/ref/99-dblclick.png deleted file mode 100644 index a562146..0000000 Binary files a/tests/ref/99-dblclick.png and /dev/null differ diff --git a/tests/ref/99-demo.png b/tests/ref/99-demo.png deleted file mode 100644 index 7711a27..0000000 Binary files a/tests/ref/99-demo.png and /dev/null differ diff --git a/tests/ref/99-fpstest.png b/tests/ref/99-fpstest.png deleted file mode 100644 index 7e3e68a..0000000 Binary files a/tests/ref/99-fpstest.png and /dev/null differ diff --git a/tests/ref/99-geom.png b/tests/ref/99-geom.png deleted file mode 100644 index 7a51332..0000000 Binary files a/tests/ref/99-geom.png and /dev/null differ diff --git a/tests/ref/99-gizmo.png b/tests/ref/99-gizmo.png deleted file mode 100644 index 258b36b..0000000 Binary files a/tests/ref/99-gizmo.png and /dev/null differ diff --git a/tests/ref/99-gui.png b/tests/ref/99-gui.png deleted file mode 100644 index 9d2012f..0000000 Binary files a/tests/ref/99-gui.png and /dev/null differ diff --git a/tests/ref/99-lmap.png b/tests/ref/99-lmap.png deleted file mode 100644 index 0b1a6eb..0000000 Binary files a/tests/ref/99-lmap.png and /dev/null differ diff --git a/tests/ref/99-lod.png b/tests/ref/99-lod.png deleted file mode 100644 index a1e81e1..0000000 Binary files a/tests/ref/99-lod.png and /dev/null differ diff --git a/tests/ref/99-occlusion.png b/tests/ref/99-occlusion.png deleted file mode 100644 index 894aa5d..0000000 Binary files a/tests/ref/99-occlusion.png and /dev/null differ diff --git a/tests/ref/99-pathfind.png b/tests/ref/99-pathfind.png deleted file mode 100644 index 5aad919..0000000 Binary files a/tests/ref/99-pathfind.png and /dev/null differ diff --git a/tests/ref/99-pbr.png b/tests/ref/99-pbr.png deleted file mode 100644 index d26a3bf..0000000 Binary files a/tests/ref/99-pbr.png and /dev/null differ diff --git a/tests/ref/99-renderstate.png b/tests/ref/99-renderstate.png deleted file mode 100644 index be3c197..0000000 Binary files a/tests/ref/99-renderstate.png and /dev/null differ diff --git a/tests/ref/99-spine.png b/tests/ref/99-spine.png deleted file mode 100644 index 6d6be26..0000000 Binary files a/tests/ref/99-spine.png and /dev/null differ diff --git a/tests/ref/99-splines.png b/tests/ref/99-splines.png deleted file mode 100644 index ff8b9f7..0000000 Binary files a/tests/ref/99-splines.png and /dev/null differ diff --git a/tests/ref/99-sponza.png b/tests/ref/99-sponza.png deleted file mode 100644 index f56b51a..0000000 Binary files a/tests/ref/99-sponza.png and /dev/null differ diff --git a/tests/ref/99-sprite.png b/tests/ref/99-sprite.png deleted file mode 100644 index aea9f5b..0000000 Binary files a/tests/ref/99-sprite.png and /dev/null differ diff --git a/tests/ref/99-sprite3d.png b/tests/ref/99-sprite3d.png deleted file mode 100644 index 58d67b1..0000000 Binary files a/tests/ref/99-sprite3d.png and /dev/null differ diff --git a/tests/ref/99-steam.png b/tests/ref/99-steam.png deleted file mode 100644 index 9e6116c..0000000 Binary files a/tests/ref/99-steam.png and /dev/null differ diff --git a/tests/ref/99-temperature.png b/tests/ref/99-temperature.png deleted file mode 100644 index 5edc052..0000000 Binary files a/tests/ref/99-temperature.png and /dev/null differ diff --git a/tests/ref/hello.png b/tests/ref/hello.png deleted file mode 100644 index 815af6e..0000000 Binary files a/tests/ref/hello.png and /dev/null differ