1
System / Re: Passing a parameterized function into sf::Thread object
« on: August 22, 2012, 07:47:44 pm »QuoteI didn't realize you had to specify the formatting in the code tags so I'm sorry (I'll keep it in mind for next time)You can also edit your first post.
Hardly seems worthwhile because this thread is largely useless. Unless someone wants the source code (it's not the most efficient Life engine out there but it is fairly good) you're free to just lock this.
sf::Clock makes use of system timers, thus they are not affected by your code, i.e. the clock will increase no matter what you do.
If you're drawing something similare to a tilemap, I can point you to the sf::VertexArray in SFML 2, it is quite performant for such things.
I see, that's quite handy. The timer does indeed work smoothly and now all I had to do is some formatting.
Also, sf::VertexArray looks good but the game engine was already written (I was just adapting it to SFML to draw it more efficiently; drawing ASCII characters in the Windows console caused some errors and it was ugly).