Planet-Generator icon indicating copy to clipboard operation
Planet-Generator copied to clipboard

Save the patches in cache?

Open ultrazar opened this issue 3 years ago • 2 comments

I think that the performance of the plugin it's good more or less, talking about the GPU. The problem comes with the CPU, when you get near the planets surface, the CPU process goes extremaly high, because needs to patch a lot of terrain with only a little movement.

I think it would be a good idea to save every patch in the ram (or disk too) so it will not be necessary to load it every time.

Should I try to implement it?

ultrazar avatar Jun 13 '21 21:06 ultrazar

That sounds like a good idea. The long term plan is to load and save chunks to disk as a different source for height data (apart from procedurally generated).

But perhaps simply caching patches in RAM would be a good idea in the meantime. If you want, you can try to implement it. On the other hand, I'll have to merge your existing changes and clean up the dev and master branches. Optimally, I want to have a stable master and the development branch for the latest features.

Hoimar avatar Jun 14 '21 08:06 Hoimar

Here my try: #23

ultrazar avatar Jul 02 '21 16:07 ultrazar