redferret / planet

A simulation that simulates geological processes as well as hydrological, biological, and other complex systems that can exist on a planet
7 stars 0 forks source link

Cell corruption #10

Closed redferret closed 7 years ago

redferret commented 7 years ago

There is a problem still with having multiple threads working on the surface that causes some cells to become corrupted, typically only at the edges of each thread's boundaries and more specifically through the center horizontally if using 4 threads on a relatively small map (64x64).

redferret commented 7 years ago

For now all cells will be atomic. The problem from before was happening because of the AWT thread accessing each cell and calculating the height which caused read/write errors on cells that weren't atomic. There were no problems between SurfaceThreads, just the AWT thread and another SurfaceThread using the same data at the same time.