Closed ogoffart closed 3 weeks ago
@eidetech The unlock in the if (m_window->window().has_active_animations())
was clearly needed, well spotted, but now the semaphore is no longer locked when doing the actual rendering in the buffer, only It is only locked as it waits for the vsync interrupt, and swap the buffers.
And it will deadlock if there is nothing to draw.
@ogoffart Good catch. Could it be solved by moving the semaphore take to before if (std::exchange(m_window->needs_redraw, false)) {
?
This is not needed after all
The semaphore is going to be locked the whole time when Slint is doing stuff.