I've discovered something weird (to me). I'm on a 1998 Sony Vaio with a Pentium 3 processor running FreeDOS 1.2. I have a test program which draws 64 full frames to the screen via VGA mode 13h. Each frame is a different color to force a full redraw. In addition, I draw a 1-pixel mouse cursor onto the frame buffer before copying.
I regulate the frame rate by explicitly waiting for the vblank period before doing the buffer copy to VRAM. Normally, my program gets a frame rate of about 15fps. This seems a bit slow given my processor speed. However, I've noticed if I am moving the mouse, the frame rate doubles to nearly 30fps. I've done some testing to try and identify the cause. I've determined that it has nothing to do with the way I'm handling the mouse in my program, because even if I never initialize the mouse in my program, this still happens, and it stops happening (always low frame rate) if I unload CuteMouse before running the program. This is with a PS/2 mouse and the laptop's trackpad, which I think is also a PS/2 device since when I tell CuteMouse not to load from serial, it still loads the trackpad. Any idea what's causing this? I'd like my program to run at the highest frame rate the hardware can manage while still obeying the display's refresh rate. Happy Hacking, David E. McMackins II Supporting Member, Electronic Frontier Foundation (#2296972) Associate Member, Free Software Foundation (#12889) www.mcmackins.org www.delwink.com www.eff.org www.gnu.org www.fsf.org ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Freedos-devel mailing list Freedos-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-devel