>use
>fillchar(ptr($a000,0),64000,0);
>Martijn v.d. Horst wrote:
>> Hello,
>> What is the fastest way to clear a 640x480, 16 color screen in TP 6.0 ?
>> I usually use the 'Cleardevice' command, but I find it quite slow.
>> I mean if my program works more than six times faster if I leave the
>command
>> out, I think it can be called slow :)
>> (I have to confess that I have a rather slow Video Card)
>> Should I use a bit of assembler code to clear it ? Something like MOV
>> $A000:0000+t,0 ?
>> I don't use assembler very often, but I do know a little bit about it.
>> Or is there some interrupt that I can call ? If so, is this universal for
>all
>> graphics cards ?
>> Or is there some other way ?
>> Thanks in advance,
>> --
>> Martijn v.d. Horst