[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
As I just said to Peter on IRC, I think not yielding in the test's
timing loops is causing a problem. Without yielding, I get poor visual
performance (I get a good count, its just that the screen has problems
with updating and I have problems with clicking the mouse to continue)
but after adding a rest(0) it becomes very responsive and draws super
fast again. Attached is a patch that adds rest(0) to the next() function.
- Kitty Cat
Index: tests/test.c
===================================================================
RCS file: /cvsroot/alleg/allegro/tests/test.c,v
retrieving revision 1.30
diff -u -r1.30 test.c
--- tests/test.c 11 Jul 2004 22:28:13 -0000 1.30
+++ tests/test.c 3 Sep 2004 08:40:01 -0000
@@ -121,6 +121,7 @@
int next(void)
{
+ rest(0);
if (keypressed()) {
clear_keybuf();
return TRUE;