|
From: SourceForge.net <no...@so...> - 2005-10-18 04:22:53
|
Patches item #1193413, was opened at 2005-05-01 17:09 Message generated for change (Comment added) made by brlcad You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=303248&aid=1193413&group_id=3248 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: BZFlag Group: None >Status: Closed >Resolution: Accepted Priority: 3 Submitted By: Karsten Behrmann (bearperson) Assigned to: Sean Morrison (brlcad) Summary: frame rate limiting (sleep) patch Initial Comment: This is a patch to make bzflag sleep intelligently while playing, so that it keeps running smoothly when the system is under load. Notebook users may also get less power consumption. Note: This works regardless of hardware, setting the limit to 50fps will get you exactly 50 fps on any hardware (unless it can't reach 50fps at all of course) A setting of 0 (the bzdb default for a non-existing setting it seems) turns limiting off, the only overhead is one bzdb eval per frame. (so this patch has essentially no effect until you enable it) The limit can't be set to less than 30fps as higher sleep times may influence the lag. Tested, compiles and works. (applied to latest CVS) ---------------------------------------------------------------------- >Comment By: Sean Morrison (brlcad) Date: 2005-10-18 04:22 Message: Logged In: YES user_id=785737 A rather modified version of this patch was implemented and is now in CVS. Instead of as a frame-rate limit, the menu option is proposed as an energy saver option instead. Also, TimeKeeper is not customized for this particular timing purpose (which also had issues that rendered it unfavorable). Thanks! ---------------------------------------------------------------------- Comment By: Karsten Behrmann (bearperson) Date: 2005-05-01 17:23 Message: Logged In: YES user_id=1256265 Okay, a bzdb eval of a non-existing variable returns INT_MIN or something, this should fix it. ---------------------------------------------------------------------- Comment By: Karsten Behrmann (bearperson) Date: 2005-05-01 17:17 Message: Logged In: YES user_id=1256265 actually, on further testing, the initial setting does not seem to be handled correctly... tracking it down. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=303248&aid=1193413&group_id=3248 |