4 ms·
Is making your own demo platform going to be the new hipster coder equivalent of rolling your own framework? I hope so. I like ibniz and mako- I like the ideas
by ZenPsycho 15y ago
Is making your own demo platform going to be the new hipster coder equivalent of rolling your own framework? I hope so. I like ibniz and mako- I like the ideas here. The javascript ibniz does some extremely silly things though that are hurting its performance by a significant amount. I've tinkered with it a bit and was able to squeeze a couple more FPS out of the rotozoomer, but the problem is really with the way the interpreter is structured- Evaluating a huge switch statement per pixel is not going to be very fast in javascript no matter what you do. I would perhaps consider instead compiling the ibniz script into a GLSL shader.
- ZenPsycho 15y agoAfter tinkering with the source for a bit longer, I can see that it will be very difficult to make ibniz go fast because of an inherent inter-pixel dependency in the stack. The semantics of the language seem to imply that the pixel kernel can pass information on to the next pixel via the stack. To be able to split up the rendering work that dependency needs to be eliminated such that each pixel depends only on x,y,t- and values pushed by the last run are implicitly cleared in single thread implementations. What sort of impact will that have on existing demo programs?