1 Jan 2005 01:07
Re: [patch] [Mesa demos] Make animation speeds constant
Marcelo E. Magallon <mmagallo <at> debian.org>
2005-01-01 00:07:44 GMT
2005-01-01 00:07:44 GMT
On Thu, Dec 30, 2004 at 04:11:36PM -0600, Marcelo E. Magallon wrote: > I had to fix some of the magic numbers, many of them where obviously > tuned to "look right" on slow hardware. I just assumed all these > programs once worked ok with an Indy or something like that > (something with sync-to-vblank) and therefore ran at 60 Hz or some > submultiple. And here's the same patch for the redbook examples and the X demos. I was somewhat put off about touching the redbook examples, since the code matches what's in the book. I consider the code to be broken; some of the code is obviously written with a SGI from the early 90's in front of you. Most of it is frame-based, meaning weird computations are performed on a frame by frame basis and a couple are hard to fix without rewriting some significant (even if small) part of it. I took the most conservative approach, which is to put a brake on the number of times the screen in updated per second. I'd would have gladly taken a more correct approach (one that doesn't hog the CPU for example), but then there's portability. How do you usleep(3) portably? If the patch is applied, will it find its way to X.org? Happy 2005(Continue reading)Marcelo ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
Marcelo
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
RSS Feed