mirror of
https://github.com/tildearrow/furnace.git
synced 2024-12-31 20:11:29 +00:00
fix timer ticking during row play
This commit is contained in:
parent
a23a2ce91e
commit
4756599df0
1 changed files with 11 additions and 9 deletions
|
@ -997,15 +997,17 @@ bool DivEngine::nextTick(bool noAccum) {
|
||||||
for (int i=0; i<song.systemLen; i++) disCont[i].dispatch->tick();
|
for (int i=0; i<song.systemLen; i++) disCont[i].dispatch->tick();
|
||||||
|
|
||||||
if (!freelance) {
|
if (!freelance) {
|
||||||
if (!noAccum) {
|
if (stepPlay!=1) {
|
||||||
totalTicksR++;
|
if (!noAccum) {
|
||||||
totalTicks+=1000000/divider;
|
totalTicksR++;
|
||||||
}
|
totalTicks+=1000000/divider;
|
||||||
if (totalTicks>=1000000) {
|
}
|
||||||
totalTicks-=1000000;
|
if (totalTicks>=1000000) {
|
||||||
totalSeconds++;
|
totalTicks-=1000000;
|
||||||
cmdsPerSecond=totalCmds-lastCmds;
|
totalSeconds++;
|
||||||
lastCmds=totalCmds;
|
cmdsPerSecond=totalCmds-lastCmds;
|
||||||
|
lastCmds=totalCmds;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (consoleMode) fprintf(stderr,"\x1b[2K> %d:%.2d:%.2d.%.2d %.2x/%.2x:%.3d/%.3d %4dcmd/s\x1b[G",totalSeconds/3600,(totalSeconds/60)%60,totalSeconds%60,totalTicks/10000,curOrder,song.ordersLen,curRow,song.patLen,cmdsPerSecond);
|
if (consoleMode) fprintf(stderr,"\x1b[2K> %d:%.2d:%.2d.%.2d %.2x/%.2x:%.3d/%.3d %4dcmd/s\x1b[G",totalSeconds/3600,(totalSeconds/60)%60,totalSeconds%60,totalTicks/10000,curOrder,song.ordersLen,curRow,song.patLen,cmdsPerSecond);
|
||||||
|
|
Loading…
Reference in a new issue