Skip to content

Commit

Permalink
Limit framerate of standby screen to 30fps if in 30fps mode and make …
Browse files Browse the repository at this point in the history
…this release 1.2.0.
  • Loading branch information
Staacks committed Aug 5, 2023
1 parent 39937f4 commit 0ad6aec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion firmware/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ int main(void) {

printf("Waiting for game.\n");
updateIncludeChroma();
uint lastFrame = timer_hw->timerawl;
while (!running) {
if (isGameBoyOn()) {
if (fallbackScreenType == FST_NONE || fallbackScreenType == FST_OFF) {
Expand All @@ -183,8 +184,9 @@ int main(void) {
startBackbufferToJPEG(false);
}
}
if (readyBufferIsNew) {
if (readyBufferIsNew && (!includeChroma || ((uint)(timer_hw->timerawl - lastFrame) > 33333))) {
if (usbSendFrame()) {
lastFrame = timer_hw->timerawl;
updateFallbackScreen();
startBackbufferToJPEG(false);
}
Expand Down
2 changes: 1 addition & 1 deletion firmware/main.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#define LED_SWITCH_PIN 1
#define LED_PIN_MASK 0x02

#define VERSION "1.2.0-beta3"
#define VERSION "1.2.0"

//On-screen display
#define MODE_INFO_DURATION 100 //Duration of the mode info in frames
Expand Down

0 comments on commit 0ad6aec

Please sign in to comment.