Board index » delphi » Graphics unrelated to CPU speed & video speed
S.J.B..
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
|
S.J.B..
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Graphics unrelated to CPU speed & video speedBonjour All, Can someone tell me what I have to do to about the following problem? I programed a simple game (boresome!) on a 80486-66 MHz or something. I tried to compute the video speed and correct the delay function to I don't program graphics/games much so if someone could give a solution Au Revoir, |
Jyrki Lahton
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Graphics unrelated to CPU speed & video speedIn article <330E0B40.1...@cpedu.rug.nl>, S.J.B...@cpedu.rug.nl says: Quote
poll the lowest byte of the system time kept at the constant memory address of [$0040:$006c] (or [Seg0040:$006c] if you target also protected mode). Something like var ... A more popular method seems to be to synchronize your game with the Hope this helps, Jyrki |
Remco de Kort
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Graphics unrelated to CPU speed & video speedQuoteJyrki Lahtonen wrote: label Remco de Korte |
Asbj?r
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Graphics unrelated to CPU speed & video speedQuoteRemco de Korte wrote: procedure waitretrace;assembler; Looks alot better to me, and it can't be "missused". - Asbj?rn |
Scott Earnes
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Graphics unrelated to CPU speed & video speedQuoteAsbj=F8rn wrote: be sufficient? Is there really any difference there? If so, I've never noticed one. (Okay, so maybe that's *two* stupid questions. :-) Also, it doesn't matter *quite* so much here, but remember that "1" and Quote> - Asbj=F8rn Scott Earnest | We now return you to our regularly | |
Asbj?r
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Graphics unrelated to CPU speed & video speedQuoteScott Earnest wrote: from used @@, so I've sort of got used to it. And, somehow, many people seem to use @@ instead of @ when writing asm in pascal. At least, every asm in pascal code I have uses @@. Quote> Also, it doesn't matter *quite* so much here, but remember that "1" and - Asbj?rn |
MonsterSo
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Graphics unrelated to CPU speed & video speedIn article <330EF6B0.5...@ix.netcom.com>, Quote>Asbj=F8rn wrote: an asm file which uses the LOCALS statment. It has no effect in BASM, but it allows one to reuse labels in external assembly files, and makes importing/ exporting asm snippets much easier. Quote>Also, it doesn't matter *quite* so much here, but remember that "1" and --Mark Iuzzolino |