Hex Casting

Hex Casting

6M Downloads

New pattern rendering code is painfully slow in bulk

yrsegal opened this issue ยท 9 comments

commented

a few spell circles can bring my fps from a clean 120 to 15

commented

profile on the rendering code
Hexal_Forge__runClient__2022_11_11_143959.txt

commented

+1, a mostly full screen of patterns took me from 220 to 15 fps
2022-11-20_13 45 32
2022-11-20_13 45 41

commented

Subjectively, drawing patterns feels much choppier in 0.10.0. Going back to 0.9.6, the grid is noticeably smoother to use. Probably related to this issue.

commented

I think I see the problem: it's converting a number in radians to a number in degrees when it doesn't need to be in degrees and then looping over that number as if it were radians, so it's doing like 60x too much work

commented

image

this was not in fact the problem! it looks like the real problem is we should try to upload things to the GPU as little as possible?

commented

(this is from a test with 55 slates on the ground)

commented

image

pros: it runs very fast now

cons: none

commented

image

commented

Not calling this fixed yet because I go down to 30fps (from 60) at a field of 121 slates but it is better.