Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Bug Project won't enter Play Mode and taking forever to open

Discussion in 'Editor & General Support' started by kingarekz16, Jun 21, 2023.

  1. kingarekz16

    kingarekz16

    Joined:
    Sep 10, 2022
    Posts:
    4
    Earlier today I decided to try to make the performance of my game better. I was learning how to use the Profiler to track down where I might have some performance issues. The most glaring issue I had was I had was in the Camera and rendering all the objects in my scene. I did some more research and then found out about batches and merging objects. I had about 14,000 batches at the time so I started to merge objects together using probuilders. Like I had buildings, and roads and such that could all be merged into one object. I got it down to about 1,500 batches after all the merges but my editor started running super slow. I decided to restart my laptop. When I went to reopen my project it took almost 30 minutes to open when before I messed with the batches it took about 1-2 minutes. Also now My editor freezes when I try to Enter Play mode, the I have to end task in task manager and spend 30 minutes just to open it again. I think the issues is something to do with some prefabs where I merged the children using ProBuilder because that is all that really changed in between the time it was working fine and now. I just don't know how to find where the issue is because I cant even profile properly because I cant even enter play mode. I really don't know what to do. Worst case scenario I can start a new project as I have all the assets and such backed up but it would take me hours and hours to port everything and hook up all my scripts to in game objects. Any advice on what to do?
    p.s. this is my first time posting so not sure if im posting this is the right spot and all, also just lmk if there's any diagnostics I could possibly share that could help.
    Thanks
     
  2. kingarekz16

    kingarekz16

    Joined:
    Sep 10, 2022
    Posts:
    4
    More troubleshooting. I turned off the gameobjects associated with the prefabs I merged using probuilder. Also went to Project Settings > Editor > Enter Play Mode Options and checked that but left the two options beneath it unchecked(someone on a forum said this fixed their issue). The game entered playmode smoothly, but now froze on exiting play mode.
     
  3. GediminasR

    GediminasR

    Unity Technologies

    Joined:
    Aug 19, 2021
    Posts:
    53
    Hello,

    This looks like a very serious bug with ProBuilder and Prefabs, could you please report it via the Bug Reporter tool and make sure to link this Forum Thread in the Description as the information you provided should add a lot of value in understanding this issue better.

    https://unity.com/releases/editor/qa/bug-reporting

    If possible please provide the steps how we could reproduce the issue from scratch or attach a minimal project where the issue is reproducible.

    Thank you in advance!
     
  4. kingarekz16

    kingarekz16

    Joined:
    Sep 10, 2022
    Posts:
    4
    I was able to resolve the bug by unpacking all the prefabs I merged and deleting them from the folder. I have the version where the bug is still there backed up onto my hard drive. Should I submit the bug report through that unity project file?
     
  5. GediminasR

    GediminasR

    Unity Technologies

    Joined:
    Aug 19, 2021
    Posts:
    53
    Yes please do and just in case when writing the description mention me and add this Threads' link there also.

    Thanks a bunch!