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

Text objects are no longer lazy in 3.0 #2464

Open
einarf opened this issue Nov 24, 2024 · 3 comments
Open

Text objects are no longer lazy in 3.0 #2464

einarf opened this issue Nov 24, 2024 · 3 comments
Labels
Milestone

Comments

@einarf
Copy link
Member

einarf commented Nov 24, 2024

Somehow we broke the laziness of Text objects. You used to be able to create them before the window.

Could be that shadow window changes affected this indirectly. There was an explicit test added in the initializer to hard fail if no window was active.

@einarf einarf added the bug label Nov 24, 2024
@einarf einarf added this to the 3.0.x milestone Nov 24, 2024
@EmmettBicker
Copy link
Contributor

I'd like to take a look at this!

@einarf
Copy link
Member Author

einarf commented Dec 5, 2024

It's definitely not the easiest task. It would involve delaying the internal creation of the pyglet label and that adds a lot of other challenges. I suspect it worked in the past because we had the pyglet shadow window enabled so you would have an OpenGL context before the window was created. This is not supported on all platforms so we decided to just not enable it.

@EmmettBicker
Copy link
Contributor

Ah okay, I'll look at other tasks to get more familiar with arcade before looking at this one then

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

No branches or pull requests

2 participants