Dead Hackers Society
Other BBSes »
 
 
Demoscene  Coding  CT60  Buy/sell

Atari coding BBS
 
Re: ST Synclock system
Posted by: evil Jun,13.2015-10:00 

BBM:
While coding the screen. I allocate too much time so I'm sure it will finish in time. Then at demo put-together I measure how long it will really take and adjust the vbls to wait.

I have no scientific way to calculate to the exact vbls, just a lame-ass visual test:

1. At the end of the runtime init, add this macro: "init_finish_green"
2. In main.s enable the equ for "init_finish"

Now the screen becomes green when the runtime init is done and you can trim down the vbls until there is a short flash of green left.

Of course you don't need to use the macro, just set the colour manually if you like that. I did it a macro like that as it's then easy to switch on/off for all parts with only one flag and only one line in each runtime init.


I'm sure it's possible to make this better to count the real number of VBL's and trim it down a tiny bit more. But this has worked OK for us so far.

--
Anders Eriksson
ae@dhs.nu








[All messages in this thread]    [Start new thread]

Topic Posted by  Date 
ST Synclock system BBM/DMG Jun,12.2015-22:35
  Re: ST Synclock system MKM/Lamers Jun,13.2015-08:45
    Re: ST Synclock system evil Jun,13.2015-10:00
      Re: ST Synclock system BBM Jun,13.2015-15:20
      Re: ST Synclock system BBM Jun,13.2015-19:18
        Re: ST Synclock system evil Jun,13.2015-19:39
          Re: ST Synclock system BBM Jun,13.2015-19:45


Reply to this message
Name:
Topic:
Anti-troll code:

Message:

What's the anti-troll code?
That's your personal code to be able to add comments and messages on the dhs.nu site.
Don't have a code or forgot it? Fix it here.
© 1994-2024 Dead Hackers Society Contact: Anders Eriksson