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 ?
 
... 23 posts hidden. Click here to view all posts....
 
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..

2009-02-04 16:51
SIDWAVE
Account closed

Registered: Apr 2002
Posts: 2238
Well, Charles Deenen coded it correct...
so rip his!
2009-02-04 17:52
chatGPZ

Registered: Dec 2001
Posts: 11386
there is no need to rip a clock routine really, just code it right =D
2009-02-04 20:57
6R6

Registered: Feb 2002
Posts: 245
The current SDI 2.0beta use the Time-Of-Day clock
to display the time. And the current settings for $dc0e look like this:

(50hz for pal)
lda #$81
sta $dc0e

(60hz for ntsc)
lda #$01
sta $dc0e

I'm not doing a proper system check, i'm only checking the value of $02a6 to determine wheter the machine is pal or ntsc. This will be fixed for the next release.
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
HCL/Booze Design
JEZ
Pantaloon/Fairlight
Freeze/Blazon
.jetan/AI-supported ..
psych
Sulevi/Virtual Dreams
sln.pixelrat
E$G/HF ⭐ 7
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.062 sec.