engine icon indicating copy to clipboard operation
engine copied to clipboard

renderqueue sort error

Open zhuxudong opened this issue 3 years ago • 2 comments

Describe the bug quicksort is wrong when compareFunc returns 0, what can be happened when camera.isOrthographic === true

To Reproduce because of element._distanceForSort returns the same value when camera.isOrthographic === true, the renderqueue is out of order .

Expected behavior quickSort should be stable when compareFunc returns 0

zhuxudong avatar Sep 08 '21 13:09 zhuxudong

I had fix this bug, you can see https://github.com/oasis-engine/engine/pull/247

singlecoder avatar Sep 08 '21 16:09 singlecoder

I had fix this bug, you can see #247

why is not merged?

zhuxudong avatar Sep 09 '21 01:09 zhuxudong