Skip to content

Pixel perfect detection with BaseRenderTexture #7356

Discussion options

You must be logged in to vote

Use extract in pixi to get data when you update the renderTexture, i hope its not often :) extract uses webgl readPixels operation.

However, readPixels is a slow operation that should be done in the end of frame, that's why renderTexture's are not suited for hit detection.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by KennethGomez
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #7355 on March 30, 2021 19:29.