With an HDA, you see the result the moment you change a parameter.
With the HDK, you wait for a build after every edit. That wait is the biggest price of the HDK.
Time after each edit
Here are the times I measured in the earlier articles:
| Situation | Time |
|---|---|
| Rebuilding the 25-line tiny node | about 6 s |
| Fixing one line in a real node (the edge damage node from article 1) | about 26 s |
| Fixing the shared code under that node | about 70 s |
| First build of that node (also builds the shared library) | about 3.5 min |
| First node in the terrain project | 208 s |
| The next node in the same project | 16 to 20 s |
One build is not a time you cannot wait out.
But even renaming one parameter label means edit, build, restart Houdini, in that order, and it adds up in work where you adjust again and again.
One DLL per node
Each of my nodes is one DLL.
The plugin folder holds 244 DLLs, about 103 MB in total. The same folder also holds 322 .old files and 14 .pdb files. Those .old files are leftovers of the replacement procedure described below.
The limit of incremental builds
Rebuilding everything takes a long time, so I made a mechanism that builds only the plugins that changed.
It looks only at the node folders changed in Git, then builds and deploys them.
But changing shared code does not add targets.
When I change a shared layer (Common, Shared, or a project's Core and GPU), I have to rebuild every node that uses it myself. It is designed that way on purpose, and a full build runs only when I ask. The cost is that "I fixed the shared code but the node's DLL is still old" can happen.
I have not recorded how long a full rebuild takes.
When a DLL is in use
While Houdini is open, a DLL cannot be overwritten.
Windows lets you rename a loaded DLL but not overwrite it. So the deploy step renames the old DLL to .old and then copies the new one in. If it is still locked, I close Houdini, or build without deploying and copy afterward.
The rules also say it plainly: never force-copy onto a loaded DLL.
The build environment is tied down too
A Houdini build and a compiler go together.
Mine is Houdini 22.0.459 with Visual Studio 2022. If I change the Houdini build or the build generator, I delete the build folder and configure again from scratch. I never reuse a state made in another environment.
Summary
A compile wait always sits between "fix" and "check".
Incremental builds reduced it but did not remove it. With an HDA, that wait is zero.
Next: the other limit, how hard it is to fix things, and Houdini's rules.
Comments