18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-20 10:24:58 +01:00

Optimise raytracing and buffer building

This commit is contained in:
2026-11-16 22:19:17 +01:00
parent 053e4cacee
commit b8815a2455
7 changed files with 69 additions and 48 deletions

View File

@@ -722,13 +722,14 @@ bool vulkan14_renderer::init_scene(std::string &Reason)
auto const cullface{draw.cullface};
draw.cullface = false;
apply_draw_state();
if (draw.set_dirty)
{
bind_pass_set();
}
auto const block{push_draw_block()};
if (block != ~0u)
{
// after the block, which may have opened a new window of the blocks the pass set is bound with
if (draw.set_dirty)
{
bind_pass_set();
}
if (draw.textures_dirty)
{
push_textures();