In my current project, I’ve encountered a situation in which my frame-rate degrades over time, and fairly swiftly.
Running PStats, it appears that the number of cached TransformStates–and only that number–is increasing, apparently without bound.
This seems to be confirmed by the fact that disabling the cache via the PRC-setting “transform-cache 0” causes the frame-rate degradation to disappear–albeit of course at the cost of overall frame-rate.
I’m slightly nonplussed: I haven’t seen this issue before, that I recall, and I thus presume that it stems from something that I’ve done. But I don’t know what!
Attempts to replicate in a minimal program have thus far failed.
Does anyone have any idea as to what might cause such a thing, or at least a direction in which I might investigate…?