Current Render Engine structure makes 'w' (wait) command implementation impossible
sinabakh opened this issue · 3 comments
sinabakh commented
Current structure waits for Arendelle to build screen matrix, then renders it.
sinabakh commented
Since Rendering is based on the common way (clear/compute/draw) which is in infinite loop till the window is closed we can't change the logic in any of these two ways:
- Breaking the loop will make the window freeze.
- Changing the rendering algorithm is not acceptable because GPUs are optimized for this kind of calculations.
So it seems there is only one way to fix it, using multi-threaded algorithm. The rendering will take place in a different thread.
sinabakh commented
Fixed.
For now we use multi-threading.
I hope it don't make problems in other OSes (read Windows).
pouyakary commented
Cool! that's really cool! It happened with stuff like that in Swifty and Arendelle IDE iOS. It seems experiences happens over and over again 😄