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 > loading times & drive compatibility
2010-01-12 18:10
Zaz
Account closed

Registered: Mar 2004
Posts: 33
loading times & drive compatibility

Hi all,

I'm working on my first multi-load demo for the C64.
I'd like to have good synchronization between the music and the effects, so I have to take into account loading times.

So the question is, what's a good strategy to do this? Given that loading times will vary between different drive models, and maybe between different drives of the same model.

Is a simple safety margin good enough, and if so, how can I determine how long it should be? Any other issues to consider?

I would like to use Krill's loader, btw.

Thanks in advance.
 
... 39 posts hidden. Click here to view all posts....
 
2010-01-24 00:19
raven
Account closed

Registered: Jan 2002
Posts: 137
@Oswald:

Even if the head is positioned for the next file as soon as one finish, the head still needs to move x tracks to that position.
When loading files back-to-back, you will get less of a delay between the files if x=1 :)

Also, if all files are saved in a linear way (same as saving one big file that contains everything) you will get zero delay when loading back-to-back.
In tight timing situations, this will help quite a bit!
2010-01-24 06:40
Oswald

Registered: Apr 2002
Posts: 5094
indeed, you're right there. it's also a good idea to load all your data in one file tho. I doubt there's zero delay.
2010-02-03 20:17
Zaz
Account closed

Registered: Mar 2004
Posts: 33
So what's a reasonable way to handle load errors? Just crash?
2010-02-03 21:10
WVL

Registered: Mar 2002
Posts: 902
I think all of the things I ever did just crash :) Good enough to show the viewer that something is wrong ;)
2010-02-03 21:35
MagerValp

Registered: Dec 2001
Posts: 1078
I'm using:

lda #2
sta $d020
eor #8
jmp * - 5
2010-02-13 21:10
raven
Account closed

Registered: Jan 2002
Posts: 137
@Zaz:

It depends on the application I guess.
In my loader I didnt include any error checks/feedback, I figured its quite useless in a "trackmo" style demo where timings are usually tight, no time to re-load if something goes wrong! :)
(Also, it saves precious cycles!)
2010-02-14 13:50
Krill

Registered: Apr 2002
Posts: 2980
If your demo crashes because there's not enough slack with loading times, you are doing something wrong though. A loader is not a raster effect.. :)
2010-02-14 13:53
Krill

Registered: Apr 2002
Posts: 2980
Quote: So what's a reasonable way to handle load errors? Just crash?

That's bad style. At least there should be some error-indicating screen, like Magervalp suggested. Best would be a human-readable error printout, i think.
2010-02-14 14:06
WVL

Registered: Mar 2002
Posts: 902
Quote: If your demo crashes because there's not enough slack with loading times, you are doing something wrong though. A loader is not a raster effect.. :)

That's bad ofcourse, but if demos crash because the disk is bad or the drive is a lot of shit, then it's ok imo.
2010-02-14 14:24
tlr

Registered: Sep 2003
Posts: 1790
Quote: That's bad ofcourse, but if demos crash because the disk is bad or the drive is a lot of shit, then it's ok imo.

I would usually refrain from calling a particular drive a "lot of shit".
Perhaps there are loaders that break on drives that are within spec?
This is a mechanical device. Lots of things have a wide tolerance range.
You have to test it on a multitude of configurations to be anywhere near sure.
Previous - 1 | 2 | 3 | 4 | 5 - 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
grip
cba
void256
tlr
Epyx/TSA
Microshark/Damage(HUN)
Guests online: 123
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 Triad  (9.3)
5 Censor Design  (9.3)
Top Fullscreen Graphicians
1 Joe  (9.7)
2 Sulevi  (9.6)
3 The Sarge  (9.6)
4 Veto  (9.6)
5 Facet  (9.6)

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