Skip to content

Commit

Permalink
calc cpf on console for now
Browse files Browse the repository at this point in the history
  • Loading branch information
coornio committed Aug 25, 2024
1 parent 2232cb7 commit b9ad112
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/HostClass/HostFunctions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ bool VM_Host::runHost() {
BVS.changeTitle(std::to_string(iGuest->fetchCPF()));
std::cout << "\33[1;1H\33[2J"
<< "Cycle time: . ms"
<< "\nTime since last frame: ";
<< "\nTime since last frame: "
<< "\nCPF: ";
}
}

Expand Down Expand Up @@ -123,6 +124,8 @@ bool VM_Host::runHost() {
<< std::setfill('0') << std::setw(3) << micros % 1000
<< "\33[2;25H"
<< Frame.getElapsedMillisLast()
<< "\33[3;6H"
<< iGuest->fetchCPF() << " "
<< std::endl;
}
} else { iGuest->processFrame(); }
Expand Down

0 comments on commit b9ad112

Please sign in to comment.