BatLib Default Modes
mrmprog:
Does the 15mhz mode drain the battery much faster?
Xeda112358:
The answer is yes and no :)
It will use the same power to perform the same actions, so in that sense, no. However, since it performs at 2.5 times the speed, it will drain at 2.5 times the speed. So, in situations where you need speed (graphics and data crunching), either mode will use the same amount of energy, but 15MHz mode will do it faster. However, if your calc is idling, waiting for user input, at 15MHz you are just draining your batteries.
So with that in mind, I will go back and modify some routines. The routines that wait for user input, like the getkey routines and Pause will execute at 6MHz and the rest will remain at the users current setting. This is especially a good idea for Pause because in 15MHz mode, Pause 250 would pause for 1 second instead of 2.5 like it would at 6MHz.
willrandship:
Interrupts work faster too, right? And, doesn't sound get screwed up? There's lots of things that change in 15 mhz mode.
Xeda112358:
Hmm, BatLib has interrupts turned off, so that isn't a problem at the moment, but I didn't know about the sound... I guess I should change the sound commands to 6MHz mode, too! Thanks!
Munchor:
I think the default both in BatLib and ReCode should be 6Mhz, however, if we use, let's say:
dim(X
It will make BatLib full.
If we did:
dim(40
Full
...
Stop
It would make ReCode 15mhz.