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

Writting to windows console janks the application #205

Open
ensisoft opened this issue Aug 22, 2024 · 0 comments
Open

Writting to windows console janks the application #205

ensisoft opened this issue Aug 22, 2024 · 0 comments

Comments

@ensisoft
Copy link
Owner

When the Win32 native game host application is logging to to the windows console the console can jank the host application.

For example if the user is keeping the console window's scroll bar handle pressed and scrolled up the print to the console blocks which then blocks the game host application.

ensisoft added a commit that referenced this issue Sep 1, 2024
Add threaded main game app logger with buffering. The idea here is
to offload the actual log writing to a separate thread so that the
main game thread doesn't have to do the logging IO. Rather it just
writes to a buffer and the contents of the buffer get dumped to the
ostream (via base::OStreamLogger) at regular intervals.

Issue #205
ensisoft added a commit that referenced this issue Sep 1, 2024
Add threaded main game app logger with buffering. The idea here is
to offload the actual log writing to a separate thread so that the
main game thread doesn't have to do the logging IO. Rather it just
writes to a buffer and the contents of the buffer get dumped to the
ostream (via base::OStreamLogger) at regular intervals.

Issue #205
ensisoft added a commit that referenced this issue Sep 2, 2024
Add threaded main game app logger with buffering. The idea here is
to offload the actual log writing to a separate thread so that the
main game thread doesn't have to do the logging IO. Rather it just
writes to a buffer and the contents of the buffer get dumped to the
ostream (via base::OStreamLogger) at regular intervals.

Issue #205
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant