18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-28 20:53:22 +01:00

fix: the review of the renderers PR: physics switches off by default, crashes on exit and at start, renderer, shader and editor fixes

This commit is contained in:
2026-11-27 09:15:11 +01:00
parent bd597146c3
commit 0ce190eab2
85 changed files with 1519 additions and 418 deletions

View File

@@ -1077,6 +1077,15 @@ bool vulkan14_renderer::Render()
report_device_lost(failure);
return false;
}
if (job.skipped)
{
// the frame was left out: its images aren't presented (SwapBuffers())
for (auto *window : ctx.acquired)
{
window->drop_images();
}
ctx.acquired.clear();
}
frame.done = ctx.timelinevalue = value;
}
@@ -2077,7 +2086,9 @@ void vulkan14_renderer::setup_screen_reflections(std::size_t const Index, bool c
// the ray traced reflections, of the main view only (as the screen space ones, which they fill in)
bool vulkan14_renderer::raytracing_wanted(viewport_config const &Viewport) const
{
if ((false == m_raytracingon) || (false == bool(m_context->scene.raytracing)) || (false == Viewport.main) || Global.bWireFrame || Global.gfx_skippipeline)
// not while the set of the frame has no structure to trace through (ray_tracing::begin_frame() without memory for it)
if ((false == m_raytracingon) || (false == bool(m_context->scene.raytracing)) || (false == m_context->scene.raytracing->traceable(m_context->slot)) || (false == Viewport.main) || Global.bWireFrame ||
Global.gfx_skippipeline)
{
return false;
}
@@ -4426,6 +4437,7 @@ scene::basic_node const *vulkan14_renderer::Pick_Node() const
void vulkan14_renderer::Forget_Node(scene::basic_node const *Node)
{
m_locallights.forget(Node);
if (m_picksceneryitem == Node)
{
m_picksceneryitem = nullptr;