Less intense on the main thread now, no memory leaks so far. To ensure we're not wasting cycles on updating an already completed texture, I use both threads_done and rendered which allows for checking if a new render batch has been started or not. This allows us to only update the texture if rendering has not completed.
4.5 KiB
4.5 KiB