[Studio Beta] Solid Modeling on Meshes & new Fragment and Sweep APIs

Hi, yes we’re aware of this issue. I’ve been looking into it and there appears to be one or two bugs that weren’t resolved by the initial fix for this issue. A lot of code relies on meshes being centered around their origin, so it’s a bit of a whack-a-mole game, but we have patches which appear to resolve the issues and we’re working with the rendering team to get this fixed.

1 Like

I’m not an expert on PreloadAsync(), but as far as I know, here’s the cost: It does bring along the CSG history, so if that’s deep then it could be an expensive way to preload. But aside from that, expect something like 100 bytes per triangle. I think the cache can evict after a few seconds, so as long as you don’t preload too much stuff at once, I would expect you’d be fine. But don’t rely on that advice regarding caching, it isn’t owned by this team.

We’ve increased the speed of Default fidelity on solids quite a lot, but yes it can still add cost. The fragments (not including the ‘main part’) use Hull fidelity by default, which is very fast so it shouldn’t be the problem in that case. But yes, more exact algorithms could be an issue. The profiling tags should help once that’s available :slight_smile:

No, you’re not missing anything; there’s currently no way to check that, and there should be. I know the rest of the team is aware of this limitation but I’m not aware of a solution being worked on, so it may be a while before there’s a non-hacky way to do this.

That error happens when the hull algorithm itself fails, which is almost certainly because the part it’s trying to make a hull for is so flat that a 3D hull can’t really be produced. It’ll get a box collider as fallback, so it’s safe to ignore the error.

If you aren’t already doing so, the fact that this error happens in your place indicates that it’d be a very good idea to check the output parts (of Fragment, I’m assuming) and delete all the tiny ones, probably based on their mass.

Ah I just did it on the mass of returned the assembly, not just the part cause deleting small parts creates gaps sometimes but I never considered parts that are really tiny so maybe thats what’s doing it. I’ll try that.

First, is there way to extend how long this data is stored for? For the server where memory is more abundant and CSG operation times are more important, this is desirable.

Second, is there a reason why csg history is stored in runtime? I wipe it on all of my unions anyway with serialization service since its not needed so I dont know why it would be stored for runtime ops.

I didn’t mean that the data is always evicted from the cache after a few seconds, just that it’s eligible for eviction.

I don’t think PartOperation history storage at runtime is intentional, but it’s part of the instance so in some cases I expect that PreloadAsync will load it since I’m not aware of an exception for PartOperation history. Unfortunately I’m not a good source of information about PreloadAsync; hopefully you can find more information about it.

Any updates / a timeline on a fix for this?

Also thanks for checking out my game :DD

It wouldn’t have been possible without the work you guys have done on the geometry team :heart: