Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > C64 Clock/Time routine
2009-02-04 00:40
SIDWAVE
Account closed

Registered: Apr 2002
Posts: 2238
C64 Clock/Time routine

Houston we have a problem!

About all clocks i have seen on C64, run too slow.

More specificly i am annoyed with SDI music tracker, and PSID64 clocks.

They run too slow!

If they play music for 4 minutes, they will claim they only played like 3:41 or so.

So my question is:

Are the coders on the wrong path, or is the C64 ?
2009-02-04 00:44
chatGPZ

Registered: Dec 2001
Posts: 11386
easy: rambones' clock runs too fast :=)
2009-02-04 00:45
GT
Account closed

Registered: Sep 2008
Posts: 308
I didn't code the clock routine in SDI, but as I'm concerned when using the correct routine, it should work. Try out some old Moz(Ic)art or MON screens, see if those clock works ? They should use a timer and decimal additions.
2009-02-04 00:56
SIDWAVE
Account closed

Registered: Apr 2002
Posts: 2238
Okay i ran astro marine core by MON, the clock is correct over 4 mins.

So SDI and PSID64 both are bugged...

About SDI, i have a suspicion that it simply runs the clock at NTSC speed... lets hammer Glenn on the head for that :)
2009-02-04 01:01
GT
Account closed

Registered: Sep 2008
Posts: 308
Let's write that down on the list with the other new hot fixes... :-)
2009-02-04 01:13
SIDWAVE
Account closed

Registered: Apr 2002
Posts: 2238
it afffected me in real life, because on the MO and X2006 party, they played my tune too short, because the on screen time was wrong!

i dont use SDI default player, but i had blindly written on screen that time was xx:xx, but in reality it was 20 secs longer, so they didnt hear my ending.. (i dont loop on compo)
2009-02-04 02:03
GT
Account closed

Registered: Sep 2008
Posts: 308
Quote: it afffected me in real life, because on the MO and X2006 party, they played my tune too short, because the on screen time was wrong!

i dont use SDI default player, but i had blindly written on screen that time was xx:xx, but in reality it was 20 secs longer, so they didnt hear my ending.. (i dont loop on compo)


Rambones. This is not real life. This is just a fantasy, a jolly playground for nostalgic freaks. :-)
2009-02-04 07:35
Stryyker

Registered: Dec 2001
Posts: 468
The issue is most likely because the timers assume PAL frame rate is exactly 50 Hz. It makes it easier to calculate fast forwards etc. When using CIA TOD it gets a bit messier.
2009-02-04 08:54
j0x

Registered: Mar 2004
Posts: 215
Quote: The issue is most likely because the timers assume PAL frame rate is exactly 50 Hz. It makes it easier to calculate fast forwards etc. When using CIA TOD it gets a bit messier.

Wouldn't that mean less than one second error in the aforementioned four minutes?
2009-02-04 10:20
Frantic

Registered: Mar 2003
Posts: 1648
Feel very free to post a clock routine on http://codebase64.org

The world needs you!
2009-02-04 10:51
WVL

Registered: Mar 2002
Posts: 902
Quote: Wouldn't that mean less than one second error in the aforementioned four minutes?

During X we've seen a lot of players showing the time wrong, and most of them by about the same amount.. way more than just 1 second..

 
... 23 posts hidden. Click here to view all posts....
 
Previous - 1 | 2 | 3 | 4 - Next
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
BYB/Hokuto Force
rexbeng
deetsay
heavymett
Peacemaker/CENSOR/Hi..
Acidchild/Padua
HCL/Booze Design
Guests online: 131
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.6)
5 Edge of Disgrace  (9.6)
6 What Is The Matrix 2  (9.6)
7 The Demo Coder  (9.6)
8 Uncensored  (9.6)
9 Comaland 100%  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 No Listen  (9.6)
2 Layers  (9.6)
3 Cubic Dream  (9.6)
4 Party Elk 2  (9.6)
5 Copper Booze  (9.6)
6 Dawnfall V1.1  (9.5)
7 Rainbow Connection  (9.5)
8 Onscreen 5k  (9.5)
9 Morph  (9.5)
10 Libertongo  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Censor Design  (9.3)
5 Triad  (9.3)
Top Graphicians
1 Mirage  (9.8)
2 Archmage  (9.7)
3 Pal  (9.6)
4 Carrion  (9.6)
5 Sulevi  (9.6)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.057 sec.