Re: [Freedos-devel] VGA frame rates and mouse

2018-07-19 Thread Eric Auer
Hi David, >> so basically you want to find out how fast you can >> update blocks of 64 000 pixels > > I never said that... What I mean is that you changed ALL pixels to make sure to know what the frame rate in the WORST case is, when ALL 320 x 200 pixels actually need updates. >> You

Re: [Freedos-devel] VGA frame rates and mouse

2018-07-19 Thread Louis Santillan
You're asking questions about performance so of course the hardware matters. And it also seems you're choosing a software path that is very inefficient as well (maybe you're calculating an alpha channel & then drawing pixels using the BIOS? Hard to tell; you're speaking vaguely). My suggestion

Re: [Freedos-devel] VGA frame rates and mouse

2018-07-19 Thread David McMackins
so basically you want to find out how fast you can update blocks of 64 000 pixels I never said that. I wanted to find out why my frame rate was dependent on the mouse activity. You probably want to optimize that copying routine. Game programmers would at least use MMX to do the alpha checks

Re: [Freedos-devel] VGA frame rates and mouse

2018-07-19 Thread Eric Auer
Hi David, so basically you want to find out how fast you can update blocks of 64 000 pixels, starting at a VSYNC and if possible taking at most very few VSYNC periods until the update is done. Assuming ALL pixels change. > No. In fact, my copying routine is extra slow, because since mode 13h >

Re: [Freedos-devel] VGA frame rates and mouse

2018-07-19 Thread TK Chia
Hello Mr. McMackins, Indeed. Do you use a fast way of writing the graphics memory, such as the "string and block processing" Assembly language commands or at least a library function in the programming language of your choice which internally uses them? No. In fact, my copying routine is extra

Re: [Freedos-devel] VGA frame rates and mouse

2018-07-19 Thread David McMackins
I said at the very beginning of my first email what hardware I'm using, but I also said that I'm not just writing this for my own hardware, so that is really irrelevant. I'm not sure what this has to do with the topic at all. Yes, I know about Allegro. Allegro is big and fat, doesn't work on

Re: [Freedos-devel] VGA frame rates and mouse

2018-07-19 Thread Louis Santillan
What hardware are you doing this on? Have you seen Allegro? [0][1] [0] http://liballeg.org/stabledocs/en/index.html [1] https://github.com/liballeg/allegro5/releases/download/v4-2-3-1/all4231.zip On Thu, Jul 19, 2018 at 5:42 AM David McMackins wrote: > > Your definition of "force full redraw"

Re: [Freedos-devel] VGA frame rates and mouse

2018-07-19 Thread David McMackins
> Your definition of "force full redraw" sounds odd. What > should be forced by that? A graphics library? Hardware? I suppose I'm not explicitly forcing, but since every pixel on the screen is being changed, it shouldn't be something weird where the hardware is not actually doing what I ask as an

Re: [Freedos-devel] VGA frame rates and mouse

2018-07-19 Thread Eric Auer
Hi David, > 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