Skip to content

Fix lazy text objects re-initializing multiple times#2644

Merged
einarf merged 3 commits intopythonarcade:developmentfrom
csd4ni3l:csd4ni3l-fix-text-lazy-draw
Apr 3, 2025
Merged

Fix lazy text objects re-initializing multiple times#2644
einarf merged 3 commits intopythonarcade:developmentfrom
csd4ni3l:csd4ni3l-fix-text-lazy-draw

Conversation

@csd4ni3l
Copy link
Contributor

@csd4ni3l csd4ni3l commented Apr 3, 2025

  • Remove unneeded init_deferred from draw functions, since the label property only initializes if the text object is no tinitialized instead of recreating it every time(this was unintentional)

csd4ni3l and others added 3 commits April 3, 2025 22:31
- draw_debug was not calling init_deferred at all
- draw was not checking if it was initialized already, making it very slow
@einarf einarf changed the title Fix new lazy Text redrawing all the time Fix lazy text objects re-initializing multiple times Apr 3, 2025
@einarf einarf merged commit 037e85d into pythonarcade:development Apr 3, 2025
7 checks passed
@csd4ni3l csd4ni3l deleted the csd4ni3l-fix-text-lazy-draw branch April 3, 2025 21:01
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