too many doodads for terrain deformation?

Doomhammer

Bob Kotick - Gamers' corporate spoilsport No. 1
Reaction score
67
I've made a spell that includes terrain deformation. It works well in my test map, which is a 64x64 Lordaeron spring map with a rather small amount of doodads. Yet when I use the spell in the proper map, which is a 92x92 Sunken ruins map already richly decorated with lots of custom doodads, it causes unholy lags.
Anyone had the same experience? Or could anything else cause the lags when terrain deformations are to be applied?
 

chovynz

We are all noobs! in different states of Noobism!
Reaction score
130
Are you removing the locations after deforming? Can you post some triggers or a map so we can see what is happening?

I think we need more detail on what is happening. Theres too many things that might be causing the lag to give you an answer without seeing the map or triggers.
 

Doomhammer

Bob Kotick - Gamers' corporate spoilsport No. 1
Reaction score
67
here's the testmap I created. It contains the CSC+CSS made wave-form spell "creeping roots". in the testmap it all runs nicely. The testmap has 299 trees/destructables and 0 other doodads

The map in which the exact code same causes horrible lags has 169 trees/destructables and 2339 other doodads (was: over 3200, as I already removed about 800 doodads)

OK, now look at map testmap 2 (snaking2) : it is the testmap again, yet with an equal amount of other doodads. See the difference when casting the spell?
 

juty

Zoom out problems look smaller
Reaction score
26
I have had a similar problem with one of my simpler maps due to the fact my cpu was locking up because the graphic card is too small for the map. It might just be something like that. By the way my pc didn’t lock up in the map with 1gig ram and 64bit graphic card. And it works fine with them map by the way I really like the map.
 

Doomhammer

Bob Kotick - Gamers' corporate spoilsport No. 1
Reaction score
67
ah, ok; thanks for posting your experience.

In my case there is one thing that helps a bit: Increase the timing interval of terrain deformations, so less deforms have to be made per second. I set my original value of 0.04 per second to 0.12, and it runs a lot better.

Thing is, that I had to remove more than a thousand nicely placed doodads from my proper map to get a better performance; that hurts a lot, as it took ages to get that appealing type of dense jungle terrain; but together with longer timer intervals, I made the map playable again.

so lesson learned: nice terrain is a great thing, but don't overdo it with doodads as they make your map slow and for some functions, such as terrain deformations even unplayably laggy.
 

Arkan

Nobody rides for free
Reaction score
92
I have the same problem, even the smallest terrain deformation cripples my computer during the deformation duration. I have 17000+ doodads and very non-linear ground structure, so I guess that's why.

Some people don't notice, think it's cause they got better computers..
 

Doomhammer

Bob Kotick - Gamers' corporate spoilsport No. 1
Reaction score
67
yeah, those are the guys with their GeForce8800 Ultra;

your doodad amount sounds amazing.
I'd like to see that map when its done!
 

Arkan

Nobody rides for free
Reaction score
92
You can, it's the Dark Invasion ORPG at members projects. A part of those doodads are pathing blockers though.
 

chovynz

We are all noobs! in different states of Noobism!
Reaction score
130
Just an observation. You have alot of moving doodads (including fire, flies, birds and alot of "zzzzz" on asleep animals. When you cast that spell it just adds more moving things to the list. I tried testing with black mask and fog on but the WE crashed. It didn't like me messing with your script. :)

Try testing with the mask and fog enabled and see what difference that makes. If it does make a difference (and i suspect it will) then you will be able to include all those doodads. If theres no difference i suggest taking some of the moving things out like flies and birds.

To me they just seemed unecessary.
 

Doomhammer

Bob Kotick - Gamers' corporate spoilsport No. 1
Reaction score
67
absolutely: the doodads in the second map are there for demonstration purpose, not for deco: they represent an equal amount of doodads in the project map I'm working on, and where the spell is to be implemented.

anyway, your observation with the black mask sounds hot...maybe there's a way to get the terrain deformations without stripping the doodads down to a few dozen. I'd be more than delighted to get that sorted. Stay with me on this one... do you have further ideas how to sort that out?
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top