Huge frame drops when looking in a certain direction

Some things that I know is probably not causing the lag:

  1. Viruses
    Everything in the game I have made myself, and I only have plugins from very trusted sources.

  2. Part Count
    There are quite a lot of parts (44k), however other games I have made have 2-3x that part count and do not have this issue. Also, there is no change in part count the lag spike occurs.

  3. Lighting
    The issue is happening on every graphic setting.

I have attached a recording of the issue, as well as the micro profiler during a lag spike.
If anyone know why it’s doing this please could you help me, thank you.


(Closer look at the microprofiler)

2 Likes

Having a huge amount of Parts in a small area can cause this because the engine is trying to compute them all.

I’m guessing the seats have a lot of Parts. Try selecting all of them and move them 500 studs away to see if that helps.
If that doesn’t change then try moving the movie screen 500 studs away and testing again.

2 Likes

The chairs are made out of 2 unions and 1 seatpart, and moving them doesn’t fix the issue.

1 Like

And the screen?

What about large numbers of Parts in that general direction, behind the screen?

1 Like

I found the issue, the VideoUI kept replicating itself on every game tick, overlaying over itself every time. Fixed the problem, was just the result of some of my bad coding…

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.