Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!usc!apple!agate!darkstar!ANDERSON@EUREKA.ucsc.edu From: anderson@EUREKA.ucsc.edu (Gary D. Anderson) Newsgroups: comp.os.msdos.programmer Subject: Faster cleardevice() needed Message-ID: <13431@darkstar.ucsc.edu> Date: 15 Mar 91 00:00:38 GMT Sender: usenet@darkstar.ucsc.edu Reply-To: anderson@EUREKA.ucsc.edu Organization: UCSC Molecular Engineering Laboratory Lines: 13 We are working on a program that does animated graphics on a variety of displays (EGA, CGA, Hercules, etc.). We are using Turbo C++ for this project. When we run the profiler, we find that the program is using up to 50% of the cpu time in cleardevice(). Does anyone have any suggestions for a faster method for clearing the screen. We have looked at "undrawing" the screen but that is slower than cleardevice(). We are doing some fairly involved floating point calculations on the fly so we need to speed up the graphics as much as possible to have smooth animation. Gary D. Anderson anderson@secs.ucsc.edu Thimann Laboratories, Department of Chemistry University of California, Santa Cruz CA 95064