Oshigawa
Full Member
 
Posts: 228
Posts: 228
|
Post by Oshigawa on May 17, 2019 13:07:42 GMT
Edit: Sorry, i should have put this in another forum.
I've got a situation.
I've got two scenes, SCENE1 and SCENE2. When i put LevelWaveSettings prefab on SCENE2, everything works fine. However, when i put it on SCENE1 and check Persist Between Scenes i get a huge memory leak which crashes Unity as soon as i run out of memory which is 8 gigs, Unity does not use more that 2 gigs when i put LevelWaveSettings to SCENE2. Normally i wouldn't mind, but i need it to be in the first scene so i can load the prefabs to shorten the loading time.
I'm using CoreGameKit v3.2.7.8 with Unity 2018.3.7.
Project is too big to send it, unfortunately.
|
|
|
Post by DarkTonic Dev on May 17, 2019 15:16:29 GMT
I can't fix a bug if I can't reproduce it. I don't believe that a memory leak is possible by anyting c-sharp is doing on my part. In other words it could be due to something wrong with mono or.Net and most likely not my coding.
I have been coding in C sharp for 16 years and I've never encountered a memory leak before. The Only Exception is when I include a dll that someone else wrote. Sorry I can't be of more help.
|
|
Oshigawa
Full Member
 
Posts: 228
Posts: 228
|
Post by Oshigawa on May 18, 2019 16:42:12 GMT
Ok, i'll try checking out the log and the profiler to see what could be causing it. Thanks 
|
|
|
Post by DarkTonic Dev on May 18, 2019 16:53:26 GMT
No problem. Let me know if you find more information.
|
|