Skip to content

Dont limit background fps when doing timedemo or fastdemo #494

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 14, 2024

Conversation

Pedro-Beirao
Copy link
Collaborator

No description provided.

@@ -107,7 +108,7 @@ void dsda_LimitFPS(void) {
int allow_limit;
int fps_limit;

allow_limit = movement_smooth || !window_focused;
allow_limit = (movement_smooth || !window_focused) && !dsda_Arg(dsda_arg_timedemo)->found && !dsda_Arg(dsda_arg_fastdemo)->found;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The shorthand for this is dsda_Flag(<arg>)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I looked at the code for recognising the command line arguments when making this change, so I didnt know dsda_Flag was a thing.
Made a new commit.

Copy link
Owner

@kraflab kraflab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks 👍

@kraflab kraflab merged commit 8a14a4e into kraflab:master Jun 14, 2024
@Pedro-Beirao Pedro-Beirao deleted the backgroundfpslimit branch November 26, 2024 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants