pixijs icon indicating copy to clipboard operation
pixijs copied to clipboard

Suggestion: The batch renderer could take into account properties of the batched element at the render time, instead of getting properties of the batched element when the batch renderer is flushed.

Open Feu-Secret opened this issue 3 years ago • 1 comments

Expected Behavior

The properties of the batched display object should be stored at the time of render.

Current Behavior

The properties of the batched display object are evaluated at the time of the batch renderer flush.

Possible Solution

Store properties at the time of the render in an object?

Steps to Reproduce

See running example. Basically, we are just changing the tint of the sprite before rendering, saving the old value. Then we restore the old value in the tint property. If the batch renderer is flushed, the tint is taken into account. If not, the tint is ignored.

Environment

  • pixi.js version: 6.4.2
  • Browser & Version: Firefox 102.0.1
  • OS & Version: Windows 10
  • Running Example: url

Feu-Secret avatar Jul 18 '22 14:07 Feu-Secret

@ivanpopelyshev I have renamed the issue as a suggestion. Let me know if you create a plugin that is doing that.

Feu-Secret avatar Aug 05 '22 12:08 Feu-Secret