CSG Collisions Not Updating On Client In Experience and CSG Operations Being Slower In Experience

In Roblox Studio my CSG operations on both client and server both function fine, running decently fast and updating the collisions. However, the problem comes when you enter the experience. Once in the experience only the server-sided tool updates part collisions. Not only that but the client-sided tool takes around 1.6x - 2x longer to process compared to in Studio.

In Studio, Expected Result, Falls Into The Subtracted Portion:

In Experience, Floating Above Subtracted Portion:

OS - Windows 11
GPU - RTX 3050
CPU - Ryzen 5 8500G
Ram - 32 GB

Expected behavior

I expect to get the same results in Studio and in Experience.

Thanks for bringing this issue to our attention. I’ve assigned this issue to the relevant group. To help us track down this issue, do you have a .rbxl file that demonstrates this issue?

Of course, here it is. The tools are in the StarterPack.
csgtesting.rbxl (81.1 KB)

The performance seems to be fixed. However do you have any word on the collisions?

Hi, I’ve tested your place in studio and published, and I am indeed seeing inconsistencies which are a bit surprising to me. For example, when using the client-side tool in the published game and placing a single hole, it will sometimes generate a hole in the collision geometry and sometimes it will not.

I’ll have to find time to look deeper into your scripts and our code to figure out what’s causing these issues, but I’ll be sure to let you know when we figure it out. Thanks for reporting this!

Hmm, alright, thanks for the update!

Okay, I’ve taken a look at this issue and I have some more information about it. I’m not seeing a discrepancy between studio and the published place, but the behavior in both can appear inconsistent and is also buggy.

There is seemingly inconsistent behavior when switching between the client-side tool and server-side tool, which can cause previously made holes to disappear and reappear.

  1. Make server-side hole.
  2. Make client-side hole.
  3. Make server-side hole. Hole 2 disappears.
  4. Make client-side hole. Hole 2 reappears, but only visually. Physics doesn’t have a hole.

There is indeed a bug causing Hole 2 to re-appear on the rendering side but not in physics. We have some updates coming in a few weeks which will fix this bug, making rendering and physics match.

Hole 2 disappearing is actually expected behavior, so that won’t go away. Client-side CSG edits don’t replicate to the server, so the server is not aware of Hole 2 and it will overwrite the whole object.

It’s also possible for holes in different places to have inaccurate collision geometry, once your object is complex (especially concave) enough, although if you’re starting with square blocks and making square holes then it’ll take a while to hit that point so I doubt that’s what you’re hitting.

I wasn’t able to reproduce the floating character issue using your place file without doing both server and client edits, so hopefully this explains the behavior you’ve seen!

What you’ve noticed is a separate bug. I had no plans to use server and client interchangeably, so I’ve never encountered that. The behavior you explained is expected and understandable for the relationship between server and client.

As you said, holes in different spots or complex geometry can cause inaccurate collisions. That is the only reason I create holes initially as boxes, but it seems even that can lead to inaccuracy in collisions. Honestly, this is undesirable; however, I understand it’s for performance benefits. Perhaps a way to check whether a union will reach this limit before the operation is done?

For a bit of background, I was only testing the client and server separately to decide whether it would be worth it to make the client predict CSG operations.

On topic, I’m now unable to reproduce the bugs my post highlighted. I’m unaware of when a solution should be selected, for this is my first post. Not to mention, you seemed to have found another bug. Just let me know.

I’m glad to hear it isn’t reproducible anymore! I suspect we have recently fixed that issue without my knowledge or even without intentionally fixing it specifically, since we’re making significant changes in that area. Please do let us know if it pops up again!

It sounds like you understand what the incremental collision geometry system is doing, and you’re completely correct, not knowing whether the resulting collision geometry is accurate or not is undesirable. I’ve made a note of your suggestion, to ensure we reconsider adding it in a future expansion of API capabilities. I’m afraid I don’t have any suggestions better than your box trick, except of course keeping/splitting the parts small enough to avoid hitting that limit.

I’m tracking that other bug separately, so feel free to mark this ticket as solved. Thanks again for reporting this! Apologies for the slow response time, I suspect this ticket fell in the cracks between teams, so to speak.