v3.0.0-beta10
Pre-release
Pre-release
·
89 commits
to main
since this release
Warning! Breaking changes w.r.t. Text Renderer
Due to the extensive refactor of the text renderer the following aspects have changed:
- Changes of how fonts are loaded, see instructions/examples for new loadFont API
- Removal of previously used Text Renderer / Font Classes and TS definitions
- Removal of
contain
property in favor ofmaxWidth
andmaxHeight
properties
Warning changes in behaviour
Previously texture that couldn't be uploaded due to doNotExceedCriticalThreshold: true
would be re-added in the queue, resulting in "stuck" textures.
This change will put textures to failed
if they can't be uploaded due to doNotExceedCriticalThreshold: true
. This will allow the engine/application to handle the failure and re-attempt to upload the texture (or apply fallback logic in the app).
The setting doNotExceedCriticalThreshold
should only be used when the memory is extremely tight, otherwise setting it to false
and a lower threshold to have a little headroom will mimick the same behaviour as Lightning 2.
What's Changed
- fix: enhance texture loading by @wouterlucas in #608
- Feat: fps throttle by @wouterlucas in #609
- added some micro optimisations by @jfboeve in #611
- perf: performance changes to the canvas text renderer by @wouterlucas in #613
- removed contain and replaced it with maxWidth / maxHeight by @jfboeve in #614
- fixed resolved defaults regarding color by @jfboeve in #616
- Text engine Refactor by @wouterlucas in #585
- fix: update texture cleanup logic by @wouterlucas in #619
Full Changelog: v3.0.0-beta9...v3.0.0-beta10