这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@MihMihai
Copy link
Contributor

@MihMihai MihMihai commented Aug 7, 2025

When running on web, creating a ThreeJS object also creates a new WebGL context instance and there's a hard limit of the number of WebGL contexts that can be created on web. The changes in this PR allow the web apps that depend on the three_js package to only create a ThreeJS object once and reuse it throughout the lifetime of the app.

The PR also changes the way image dimensions are retrieved. Previously only JPEG image were supported through the use of _getJpegDimensions. This is now replaced with _getDimensions, that allow any kind of image to be used.

…on Flutter Web. Replaced _getJpegDimensions with _getDimensions to support all image types when retrieving dimensions.
@Knightro63 Knightro63 merged commit 0602283 into Knightro63:main Aug 7, 2025
1 check failed
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