Skip to content
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

Disable buffering on stdout by default. #259

Merged
merged 0 commits into from
Jan 15, 2025

Conversation

jstine35
Copy link
Collaborator

This change imposes a default behavior that ensures stdout prints in realtime and is in correct chronological sequence with stderr. It is the generally expected behavior for any multimedia or gaming application. If a specialized script (for unit testing?) intends only to output large sets of results to stdout, it can optionally re-enabe this buffering within that script to gain a tiny amount of execution speed.

I had added code to tests/audio to turn this on manually, and was about to do the same thing to the other test, when I realized it is better done by default for all game apps. There is no tangible benefit to buffered stdout for games, and tons of drawbacks.

@jstine35 jstine35 requested a review from kivutar January 12, 2025 13:15
@jstine35 jstine35 merged this pull request into libretro:master Jan 15, 2025
10 checks passed
@jstine35 jstine35 deleted the setvbuf-no branch January 15, 2025 01:58
@jstine35 jstine35 restored the setvbuf-no branch January 22, 2025 06:04
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