Board index » delphi » Need a (very) fast write-routine for the full screen
Olaf Uebersch
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
|
Olaf Uebersch
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Need a (very) fast write-routine for the full screen
Hi everybody,
As my program has often to write the full screen at one moment, I have Move(Buffer^, Mem[VideoSeg ; $0000], 8000); But my problem is that the procedure move isn't very fast. Maybe someone Please mail me, if you have. Thank you in advance, Olaf |
Osmo Ronkan
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Need a (very) fast write-routine for the full screenIn article <6ss3pr$fj...@news00.btx.dtag.de>, QuoteOlaf Uebersch?r <Olaf.Uebersch...@t-online.de> wrote: Quote
Procedure Wmove(var src,dest; size: word); assembler; mov ax,di sub bx,ax rep movsw mov cx,bx end; Procedure Fmove(const src;var dest; size: word); assembler; asm mov ax,di sub bx,ax shr cx,1 cmp dh,2 { Is the cpu 386+ } cmp cx,10 mov ax,di sub bx,ax {$ifopt g+} mov dl,3 @not386: rep movsw xor dh,dh end; As in your case the source and destination will be automatically dword Osmo |
Jason Burg
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Need a (very) fast write-routine for the full screenIn article: <6su5sb$...@kruuna.Helsinki.FI> ronka...@cc.helsinki.fi (Osmo QuoteRonkanen) writes: Quote>Procedure Fmove(const src;var dest; size: word); assembler; Quote> {$ifopt g+} instructions" compiler directive when this bit of code will only be executed by 386+ machines? Why not hard-code the "shr cx,2" instruction instead; db $C1,E9,$02; { shr cx,2 } Quote> mov dl,3 Jay ----------------------------------------- |
Osmo Ronkan
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Need a (very) fast write-routine for the full screenIn article <252197707...@jayman.demon.co.uk>, QuoteJason Burgon <Ja...@jayman.demon.co.uk> wrote: local $G directive. I am pleased to see that someone uses that much time to analyze my Osmo |
Telemacho
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Need a (very) fast write-routine for the full screenHi ! Quote>As my program has often to write the full screen at one moment, I have program down! Moving 8000 bytes is NO amount of memory - and you'll not see any great boost in performance with any FastMove routine there is in the world! Perhaps it's something else in your code that slows the program down! How many Frames per second does your text-mode program need anyway :)) Telemachos |
Telemacho
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Need a (very) fast write-routine for the full screenHi ! Quote>As my program has often to write the full screen at one moment, I have program down! Moving 8000 bytes is NO amount of memory - and you'll not see any great boost in performance with any FastMove routine there is in the world! Perhaps it's something else in your code that slows the program down! How many Frames per second does your text-mode program need anyway :)) Telemachos |
Telemacho
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Need a (very) fast write-routine for the full screenHi ! Quote>As my program has often to write the full screen at one moment, I have program down! Moving 8000 bytes is NO amount of memory - and you'll not see any great boost in performance with any FastMove routine there is in the world! Perhaps it's something else in your code that slows the program down! How many Frames per second does your text-mode program need anyway :)) Telemachos |
Bernd Heutlin
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Need a (very) fast write-routine for the full screenQuoteTelemachos wrote: Telemachos's got a point there, I guess. Although I find the By the way, does anybody know why TPROF doesn't work properly with Greetings Bernd Heutling |
Olaf Uebersch
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Need a (very) fast write-routine for the full screenHi all, At first I wanna thank everybody who helped me with that problem. For special window-operations I save and load the screen (and many other Please mail me, if you know how to speed up the read/write-access or if Thanks, |
Jason Burg
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Need a (very) fast write-routine for the full screenIn article: <6t32k7$...@kruuna.Helsinki.FI> ronka...@cc.helsinki.fi (Osmo QuoteRonkanen) writes: Quote>>Just a minor point Osmo, I don't understand why you check the "Use 286 directives, like you can with TASM (I think you can anyway). eg: {$PUSH} { Save current directives } 286 code goes here {$POP} { Restore previous directives } Quote>I am pleased to see that someone uses that much time to analyze my -- Jay ----------------------------------------- |
Dr John Stockto
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Need a (very) fast write-routine for the full screenJRS: In article <6t6hl4$mf...@news00.btx.dtag.de> of Wed, 9 Sep 1998 18:33:08 in comp.lang.pascal.borland, =?iso-8859-1?q?Olaf_Uebersch=E4r?= Quote<Olaf.Uebersch...@t-online.de> wrote: using per screen as they do much less video memory than exists, break it into a number of pages; some users only ever use Page 0. See, for example, Int10/05. -- |
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Need a (very) fast write-routine for the full screen |
Dr John Stockto
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Need a (very) fast write-routine for the full screenJRS: In article <35FE1DC5.3...@urlfor.addr> of Tue, 15 Sep 1998 04:57:04 in comp.lang.pascal.borland, Mike <ch...@urlfor.addr> wrote: Quote>Dr John Stockton wrote: included another half dozen abbreviations by not doing so. Moreover, one should not rely on the Subject line, especially if changed, being obvious to the reader; that is reader- and eyeballs- dependent. It's also a good idea to read signatures - see Line 2 of the one you You do not give a valid-looking E-mail address, and your Message-ID RHS -- |
Mike
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Need a (very) fast write-routine for the full screenQuoteDr John Stockton wrote: > Moreover, one should not rely on the Subject line, especially if Sorry, that's the best I could do. "Off-Topic" indicates a different Clearly, the only reader who could answer the question is yourself, > It's also a good idea to read signatures - see Line 2 of the one Your list has some, but it omits "AIUI". This is fairly common, but Your list also omits "ISTM", which you use often, and is found > You do not give a valid-looking E-mail address, and your Under "Personal Identification", you discuss reasons for not I regret such measures are necessary, but nothing else seems to work. Best Regards, Mike |
Dr John Stockto
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Need a (very) fast write-routine for the full screenJRS: In article <35FF6C96.6...@urlfor.addr> of Wed, 16 Sep 1998 04:45:42 in comp.lang.pascal.borland, Mike <ch...@urlfor.addr> wrote: Quote>Dr John Stockton wrote: everything in this group, ignoring the subject list. Convention is that the body should stand alone, and not need the subject. Don't worry about DejaNews; I would not have searched it; and my software is designed to keep all my posts. Quote> > It's also a good idea to read signatures - see Line 2 of the one such as in TOOTKA, to which there is a link on that page, above my list. Quote> > You do not give a valid-looking E-mail address, and your access the From line, so a genuine ReplyTo is relatively safe. One can also put the address in the Sig, possibly subtly disguised. I believe that your chosen pseudo-address, ending in "addr", causes unnecessary load on the top level name servers. You have been reading my news-use page rather selectively, it seems. -- |
1. Need a new text screen-writing routine
2. Full Screen: really full screen
3. writing a full-screen application
4. Writing a full fledge screen saver
5. I need FAST putpixel and bar routines
6. A fast PutPixel routine in $101-$107 modes needed ($10 intr)
7. Need a FAST bankswitching routine.
9. Fast search routine needed (or the theory)
10. A fast PutPixel routine in $101-$107 modes needed ($10 intr)