Jump to content

Slow Viewport Sim. Quick Sim when entering specific frame


colorofblack

Recommended Posts

Hi everyone!

I'm currently going through the Procedural Cities in Houdini Tutorial from Pluralsight.
So far everything worked out great. I had to adjust some nodes (As the tutorial was made in Houdini 15) But it's working. 

I'm now in the process of aligning bounding boxes of Buildings to the geometry surrounding them (e.g. rotating the buildings so they face the streets) Using a bulletsolver and popattract.
In the tutorial video this simulation runs smoothly... when I'm opening the exercise files on my Computer it runs fine too. But with my own file the viewport runs slow (like 1 frame every second) 
The perfomance monitor shows this: 
PM.png.002dd01439c1077ca452455871ad0b1a.png

(The dopimport took even more time but I bypassed it here to see if the problem was somewhere else) 

I'm not sure where to check for the __DopDetailLook_Guide or how to influence it. 
But it seems to be viewpoert related, as entering a framenumber in the timeline simulates super quick and gives the right result... 

So this isn't really breaking anything as I can get the correct result anyways without waiting forever, still I would love to know why the simulation runs so poorly in the viewport. 

If anyone wants to see the hipnc file I'm happy to upload it somewhere. 

Any help would be greatly appreciated!

Cheers! 
Daniel 

Link to comment
Share on other sites

Hey

I thought so too, but I tried the exercise files attached to the course and it simulated just fine. 
I rebuilt it with packed cubes and it worked too..and i have a lot more cubes than bounding boxes in the original version.. hm 

I attached the hip file if anyone wants to take a look. the problem is in the red box-> cityblocks_sim...
The input nodes there are frozen now...hope that removes the need to import the "buildings"..otherwise they are in the placeholderBuildings.zip.
The test setup with the cubes is also in the hip file. 

Cheers!

citySim.hipnc

placeholderBuildings.zip
 

Edited by colorofblack
Link to comment
Share on other sites

Okay I seem to have found the culprit. 
The Buildings get packed after removing the ones not in the city block. In the pack node Create Packed Fragments is checked by default.
It is also active in the course...but deactivating it improves the simulation framerate drastically..not sure why... if anyone knows what it does and why you 
have to deactivate it I would be happy to konw 
 

Link to comment
Share on other sites

Hi Daniel, I had a quick peek at your file yesterday, you resampled the boxes to a very high detail. With a Resample SOP node. Then you packed them and sent to DOP. I don't think that it is necessary and it slows down the DOP a lot. You may check the tutorial, what is the purpose of their Resample (and then Fuse), and how it should be used.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...