Menu

#1 Add usleeps to your while (1) loops..

open
nobody
None
5
2003-08-21
2003-08-21
No

Heres a small patch to 0.0.3 to add some usleeps where
appropriate.

This essentially drops cpu usage from 100% all the time
to 25% during gameplay and near 0% on menus.

I'd recommend you use this or something similar to slow
down your game loop...

Great game, though! =)

-- Eric Andresen

Discussion

  • Eric Andresen

    Eric Andresen - 2003-08-22

    Updated patch

     
  • Eric Andresen

    Eric Andresen - 2003-08-22

    Logged In: YES
    user_id=687610

    Updated patch for 0.1.0.. good work =)

     
  • Caleb Moore

    Caleb Moore - 2003-08-22

    Logged In: YES
    user_id=354375

    Merged the patch into the main tree, will be in next major
    release.. . Thank you for your contribution, sorry for not
    noticing it until now

     

Log in to post a comment.

MongoDB Logo MongoDB