Search This Blog

Tuesday, July 30, 2013

ASCII prototype - codename Planet

As mentioned before, I use ASCII game programming as way to prototype concepts and check performance of underlaying system. Movie bellow presents project "Planet". I used here simple STL vector to create 1000 objects and check whats the performance of updating each of them per frame. Updates are simple.



As you could see the code is unstable in terms of CPU cycles per second. Unstability is seen that once Mr "Z" objects move from the corner, and more are to be written to different position in screen buffer, CPU cycles and time increases. Simple fix to clearing screen function that I have written stabilize this to around 70000 cycles per frame.

With that we also loose drops to mentioned 15000 cycles, which wasnt bad behavior. That was clear notification of cache reuse. Still I have filling that having this stabilization, I am now able to work on reusability of cache. Being sure that there is no more strange increase in cycles, gives me stability. To improve cache usage I shall look into update function and write to screen buffor function.

Sounds like interesting topic on side to play with.


No comments:

Post a Comment