3 ms·
Each component should generate a random seed on construction, and use that same seed for its entire lifetime.
by Diggsey 8y ago
Each component should generate a random seed on construction, and use that same seed for its entire lifetime.
- shihn 8y agoIt's actually simpler than that. Most of the time it should not re-render at all. Should only re-render when the size has changed - at which point one needs to recompute anyway. I was just lazy and rendering every time.