delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/11/19/03:46:28

Newsgroups: comp.os.msdos.djgpp
From: wolfman AT cedar DOT alberni DOT net
Subject: Urgent: memory protection and graphics
Message-ID: <b127cd$17135.33c@news.alberni.net>
Date: Wed, 19 Nov 1997 07:01:53 GMT
Lines: 18
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Hello,

I am writing because I am working on a graphics library and I want to shut of memory 
protection so that I can write to the video buffer like: video_buffer[offset]=color; as 
well as for speed and for compatability with Watcom.  The problem is that I was working 
with line drawing and I was switching in and out of memory protection within the line 
drawing function.  I was disatisfied with the speed, so I descided to switch in and out 
of memory protection outside the function.  My line drawing speed went like a basillion 
times faster!  I am very tempted to shut off memory protection when the graphics mode is 
set and to turn it back on when the program exits.  Is there any proplem with this?  The 
faq and documentation is very vague about the subject.  I desperately need the speed 
increase.  What should I do?


Please reply.

wolfman AT cedar DOT alberni DOT net

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019