optimizing large operations?

User avatar
mauvebic
Member
 
Posts: 1550
Joined: Fri Jan 27, 2012 11:32

optimizing large operations?

by mauvebic » Mon Jul 23, 2012 12:45

If my calculations are right, generating a sphere that has a radius of 64 nodes would require somewhere between 2-3 mil operations. A sphere that big usually requires running the command 4-5 times, add to that, i never know when its done and needs to be run again except by looking at my FPS. I tried adding progress indicators but that only resulted in smaller portions of the sphere spawning each time i run the command.

How would one go about splitting up large operations? Ive thought of maybe seperating the functions from the actually node placing, but that would require first writing the changes to a multidimensional table, and then processing it. Though i have a feeling such large tables would segfault :-/
"Fuck the hat." - Paulie Gualtieri
 

User avatar
PilzAdam
Member
 
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam

by PilzAdam » Mon Jul 23, 2012 12:56

Maybe its possible to save the border of the sphere and then fill it in a register_on_globalstep function.
 


Return to WIP Mods

Who is online

Users browsing this forum: No registered users and 10 guests

cron