3 ms·
Hmmm ... the author says that percentage of frame time left for game logic is the important factor, but if raw c++ is around 6 times faster, doesn't that mean y
by aufreak3 15y ago
Hmmm ... the author says that percentage of frame time left for game logic is the important factor, but if raw c++ is around 6 times faster, doesn't that mean you can do 6x more sophisticated game logic in a given amount of free time as well?
That said, the webgl performance in chrome is indeed (relatively) impressive. Am also a macbook air user and have no trouble getting good performance on it.
One point to note is that the webgl engine in chrome runs all graphics in a single process, atleast partly for reasons of security (shader code gets checked by the browser before being set to the gpu, for example). That is sort of like a driver on top of a driver and so there will always be like a 2x performance gap between webgl and c++ i think.
Still ... the future looks bright.
- marshray 15y agoFor a given number of triangles/quads, you have a certain amount of time left in the frame period for the game logic. Say 5 ms out of a 17 ms frame (@60 FPS). A faster language like C++ is going to take less time for feeding vertex data to the GPU. So instead of taking 12 ms to push the vertices it may take 2 ms, giving you 15 ms for game logic instead of 5, a 3x increase in time. The game logic will likely be faster by a similar factor, so you could quite possibly get an 18x increase in game logic capacity.