Teardown

Teardown

Almost Golden Gate Bridge
 This topic has been pinned, so it's probably important
HyperPoss  [developer] 6 Oct, 2023 @ 6:45am
Longer Bridge
The update has been uploaded to Steam. The relevance of this topic is questionable, but it will be here, the long bridge still lags.
Hi all! In this discussion I would like to tell about the longer bridge. I have been asked more than once to make this bridge longer, but I did not consider this request something important, now I tried to make a longer version, but I encountered the same problem as I wrote about in the comments, terrible lags.

Lags even just when physics is turned on, you can see what it looks like here:
Youtube

I don’t know yet what can be done with lags, but I gonna try 1 one method, but if it doesn’t work out (I think it not work), I don’t know.

Maybe you know methods of deeper optimization?
Last edited by HyperPoss; 9 Oct, 2023 @ 10:16am
< >
Showing 1-14 of 14 comments
Tetra 7 Oct, 2023 @ 2:36am 
Sorry, I would love to help (I think it's a great map?) however, I do not know teardown modding.
Tired-Bean 7 Oct, 2023 @ 12:57pm 
ah i see, well if you were to add it in, just have a warning that says laggy
HyperPoss  [developer] 7 Oct, 2023 @ 1:27pm 
Originally posted by Tired-Bean:
ah i see, well if you were to add it in, just have a warning that says laggy
Okay, okay. I'll do that. Maybe tomorrow, or something like that.
Last edited by HyperPoss; 7 Oct, 2023 @ 1:31pm
Tired-Bean 8 Oct, 2023 @ 5:48pm 
Originally posted by HyperPoss:
Originally posted by Tired-Bean:
ah i see, well if you were to add it in, just have a warning that says laggy
Okay, okay. I'll do that. Maybe tomorrow, or something like that.
take your time
Doomdrvk 9 Oct, 2023 @ 11:18pm 
The reason your bridge is so laggy is the amount of air the raycasts from the camera have to go through to actually hit something to render. You should have the bridge and the catwalk underneath as separate objects still bound together. https://i.imgur.com/7i14ZxK.png the stairs are also extremely inefficient https://i.imgur.com/WXu6EDK.png. Creating a large bounding box full of air.
HyperPoss  [developer] 10 Oct, 2023 @ 5:09am 
Originally posted by Doomdrvk:
The reason your bridge is so laggy is the amount of air the raycasts from the camera have to go through to actually hit something to render. You should have the bridge and the catwalk underneath as separate objects still bound together. https://i.imgur.com/7i14ZxK.png the stairs are also extremely inefficient https://i.imgur.com/WXu6EDK.png. Creating a large bounding box full of air.
Interesting... I'll think about that, and maybe fix it in the next update. Thanks!
HyperPoss  [developer] 10 Oct, 2023 @ 5:13am 
Originally posted by Doomdrvk:
The reason your bridge is so laggy is the amount of air the raycasts from the camera have to go through to actually hit something to render. You should have the bridge and the catwalk underneath as separate objects still bound together. https://i.imgur.com/7i14ZxK.png the stairs are also extremely inefficient https://i.imgur.com/WXu6EDK.png. Creating a large bounding box full of air.
I just noticed that the profiler has the longest delay on "Physics". But... Perhaps it could even be related. It probably also matters that (As long as i remember) each column is a physical body, it’s probably useless especially after I fixed it to the concrete.
Last edited by HyperPoss; 10 Oct, 2023 @ 5:16am
Doomdrvk 10 Oct, 2023 @ 4:08pm 
Originally posted by HyperPoss:
Originally posted by Doomdrvk:
The reason your bridge is so laggy is the amount of air the raycasts from the camera have to go through to actually hit something to render. You should have the bridge and the catwalk underneath as separate objects still bound together. https://i.imgur.com/7i14ZxK.png the stairs are also extremely inefficient https://i.imgur.com/WXu6EDK.png. Creating a large bounding box full of air.
I just noticed that the profiler has the longest delay on "Physics". But... Perhaps it could even be related. It probably also matters that (As long as i remember) each column is a physical body, it’s probably useless especially after I fixed it to the concrete.
Yes it can definitely be related, the weight calculations still have to skip through all the air voxels connecting the object and it has to understand the voxels in that location can pass through.

Let me be clear, "air" and "empty space" are two different things. Voxel objects which are made as one thing with space inbetween will have air voxels fill in that space, those are still accounted for in calculations and still need to continuously skipped through when doing those calculations. Empty space is space in the game which is no where in a shape bounding box.

Any time the rendering system comes comes in contact with this "air" it is fast to skip through unless there is a lot in the direction its going. Weight calculations for physics have to include the air as it checks each voxel and its structure and creates a collision box and maintains proper collision.

So it is fast to skip through the air but when you have thousands to hundreds of thousands of EXTRA voxels to pass through or check it slows down the shape calculations massively in different areas.
Last edited by Doomdrvk; 10 Oct, 2023 @ 4:09pm
HyperPoss  [developer] 11 Oct, 2023 @ 10:00am 
Originally posted by Doomdrvk:
Originally posted by HyperPoss:
I just noticed that the profiler has the longest delay on "Physics". But... Perhaps it could even be related. It probably also matters that (As long as i remember) each column is a physical body, it’s probably useless especially after I fixed it to the concrete.
Yes it can definitely be related, the weight calculations still have to skip through all the air voxels connecting the object and it has to understand the voxels in that location can pass through.

Let me be clear, "air" and "empty space" are two different things. Voxel objects which are made as one thing with space inbetween will have air voxels fill in that space, those are still accounted for in calculations and still need to continuously skipped through when doing those calculations. Empty space is space in the game which is no where in a shape bounding box.

Any time the rendering system comes comes in contact with this "air" it is fast to skip through unless there is a lot in the direction its going. Weight calculations for physics have to include the air as it checks each voxel and its structure and creates a collision box and maintains proper collision.

So it is fast to skip through the air but when you have thousands to hundreds of thousands of EXTRA voxels to pass through or check it slows down the shape calculations massively in different areas.
Hmm, if so, I'll definitely fix it. Thank you! :steamthis:
HyperPoss  [developer] 12 Oct, 2023 @ 1:24pm 
Originally posted by Doomdrvk:
Originally posted by HyperPoss:
I just noticed that the profiler has the longest delay on "Physics". But... Perhaps it could even be related. It probably also matters that (As long as i remember) each column is a physical body, it’s probably useless especially after I fixed it to the concrete.
Yes it can definitely be related, the weight calculations still have to skip through all the air voxels connecting the object and it has to understand the voxels in that location can pass through.

Let me be clear, "air" and "empty space" are two different things. Voxel objects which are made as one thing with space inbetween will have air voxels fill in that space, those are still accounted for in calculations and still need to continuously skipped through when doing those calculations. Empty space is space in the game which is no where in a shape bounding box.

Any time the rendering system comes comes in contact with this "air" it is fast to skip through unless there is a lot in the direction its going. Weight calculations for physics have to include the air as it checks each voxel and its structure and creates a collision box and maintains proper collision.

So it is fast to skip through the air but when you have thousands to hundreds of thousands of EXTRA voxels to pass through or check it slows down the shape calculations massively in different areas.
It doesn't seem to work. Maybe I did something wrong... But here's another video YouTube Perhaps it's just too big dynamic building.
Doomdrvk 13 Oct, 2023 @ 2:22am 
I'd like to review what you did if you could post another version on the workshop as an unlisted map and link it here I would be happy to review it.

Though after viewing it again and understanding the length of the bridge it is very possible the long bridge is seriously too much

. Also theres a warning about going over 400 meters with the shadow volume as it seems to seriously mess with AMD gpus. What your video showed and my own test showed was that the bridge was the most taxing on the physics aspect.
Last edited by Doomdrvk; 13 Oct, 2023 @ 2:48am
HyperPoss  [developer] 13 Oct, 2023 @ 4:50pm 
Originally posted by Doomdrvk:
I'd like to review what you did if you could post another version on the workshop as an unlisted map and link it here I would be happy to review it.

Though after viewing it again and understanding the length of the bridge it is very possible the long bridge is seriously too much

. Also theres a warning about going over 400 meters with the shadow volume as it seems to seriously mess with AMD gpus. What your video showed and my own test showed was that the bridge was the most taxing on the physics aspect.
Okay, I'll post this for the link so you can try it, as far as I remember it's possible) I'll also try to reduce it by one "Segment" (That's 2 towers). And make some other minor changes. Thanks again.
HyperPoss  [developer] 14 Oct, 2023 @ 12:02pm 
Originally posted by Doomdrvk:
I'd like to review what you did if you could post another version on the workshop as an unlisted map and link it here I would be happy to review it.

Though after viewing it again and understanding the length of the bridge it is very possible the long bridge is seriously too much

. Also theres a warning about going over 400 meters with the shadow volume as it seems to seriously mess with AMD gpus. What your video showed and my own test showed was that the bridge was the most taxing on the physics aspect.
Here you go!
Doomdrvk 14 Oct, 2023 @ 9:05pm 
Its disappointing but it does just seem Teardown can't handle such a massive million voxel+ physical body.
< >
Showing 1-14 of 14 comments
Per page: 1530 50