• Advertisement


Sign in to follow this  
  • entries
  • comments
  • views


Sign in to follow this  


Well I had an idea while preparing my pizza just now to stop the editor flickering. I just stuck a Sleep(1); in there and it now scrolls nicely without a flicker in sight. This is the second Sleep(); I've used in two projects now though. [rolleyes]
Is it actually bad style or is that just in my head? It always feels somewhat hackish.

Anyway. Pizza time.
Sign in to follow this  


Recommended Comments

Why not just set a framerate lock? Sleep(1) is essentially just making it so that it can't update really quickly (minimum waiting time of 1/1000 of a second). Why not just use some timers?

Share this comment

Link to comment
That would have it running at 100% cpu though wouldn't it? This isn't a problem but it looks bad..

Share this comment

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Advertisement