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

Still problems with frame refresh on WSL Ubuntu #20

Open
razterizer opened this issue Apr 2, 2024 · 2 comments
Open

Still problems with frame refresh on WSL Ubuntu #20

razterizer opened this issue Apr 2, 2024 · 2 comments

Comments

@razterizer
Copy link
Owner

razterizer commented Apr 2, 2024

Image

Here you can see that:

  1. The terminal is not properly cleared.
  2. The final row gets duplicated below it.

I don't know the reason for the second issue, so therefore it is not so easy to fix, but the first issue can be solved by adding the following code in the init() function of GameEngine:

#ifndef __APPLE__
#ifndef __WIN32
std::system("clear");
#endif
#endif
@razterizer
Copy link
Owner Author

razterizer commented Apr 2, 2024

For issue (1), I would start looking in clear_screen() in Screen.h and then GameEngine.h.

@razterizer
Copy link
Owner Author

It might be a WSL Ubuntu thing.

@razterizer razterizer changed the title Still problems with frame refresh on Ubuntu Still problems with frame refresh on WSL Ubuntu Apr 4, 2024
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

No branches or pull requests

1 participant