You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When I use Bitmap's scrollRect API, when the object is not rendered on screen, scrollRect will fail and display a complete BitmapData screen.
To Reproduce
varbitmap=newBitmap(Assets.getBitmapData("assets/1024.png");
bitmap.scrollRect=newRectangle(300,300,50,50);
this.addChild(bitmap);
// out screenbitmap.x=stage.stageWidth;
Expected behavior
It should not be presented off the screen, so is there a way to determine when the scissorRectangle is no longer in the picture, it will not be rendered?
Screenshots
Everything was rendering normally on the screen, but in the end, I moved it off the screen and it became invalid. Generally, this is caused by third-party custom Context3D behavior, which works fine on most devices. However, processing without rendering off screen should also be compatible, which can improve performance.
In screen:
Move to out:
Boom:
OpenFL Targets
HTML5, and Wechat Mini Game.
Additional context
None.
The text was updated successfully, but these errors were encountered:
Describe the bug
When I use Bitmap's scrollRect API, when the object is not rendered on screen, scrollRect will fail and display a complete BitmapData screen.
To Reproduce
Expected behavior
It should not be presented off the screen, so is there a way to determine when the scissorRectangle is no longer in the picture, it will not be rendered?
I made a simple patch for this, but I don't think it's the best solution because it still uploads vertex data:
zygameui/openfl@0a981d8#diff-e10e3ae597de950c45f6be87b465cf143300102fbd1ede24aae0a3301ba25aae
Screenshots
Everything was rendering normally on the screen, but in the end, I moved it off the screen and it became invalid. Generally, this is caused by third-party custom Context3D behavior, which works fine on most devices. However, processing without rendering off screen should also be compatible, which can improve performance.
In screen:
Move to out:
Boom:
OpenFL Targets
HTML5, and Wechat Mini Game.
Additional context
None.
The text was updated successfully, but these errors were encountered: