wip(render3d): one frame recording while one draws on Vulkan (double-buffered ring and pools), R3D_VK_LABELS, grass measuring switches (R3D_NOGRASS, R3D_BLADES, R3D_GRASS_S0/D0)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
4e2087d6eb
commit
f815f3e3cf
8 changed files with 100 additions and 19 deletions
|
|
@ -46,6 +46,7 @@ function prof_slot(render3d_st: mut Render3dState, name: pointer) -> int {
|
|||
|
||||
function prof_begin(render3d_st: mut Render3dState, name: pointer) -> void {
|
||||
ds_set_pass(render3d_st, name)
|
||||
if render3d_st.gvk_labels { gvk_label_begin(render3d_st, name) }
|
||||
if not render3d_st.prof_on { return }
|
||||
if render3d_st.prof_active >= 0 { return } # GL_TIME_ELAPSED queries cannot nest
|
||||
let s = prof_slot(render3d_st, name)
|
||||
|
|
@ -56,6 +57,7 @@ function prof_begin(render3d_st: mut Render3dState, name: pointer) -> void {
|
|||
|
||||
function prof_end(render3d_st: mut Render3dState) -> void {
|
||||
ds_set_pass(render3d_st, render3d_st.ds_outside)
|
||||
if render3d_st.gvk_labels { gvk_label_end(render3d_st) }
|
||||
if not render3d_st.prof_on { return }
|
||||
if render3d_st.prof_active < 0 { return }
|
||||
gpu_query_end(render3d_st)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue