Questions about engine memory usage and speed scene (DEF-2695)

Hi all.

First question:
I created a project with a lot of FullHD images (full weight about 50MB graphics) and engine, on some system, usage about 500Mb-1.1Gb memory, others system usage 50-60Mb. Did anyone have same issue or not?

I wrote a message because Editor + Engine usage about 5-6Gb RAM (I use both Editor version) and it’s really difficult to work this way.

Second question:
On some systems scene speed is very fast (variable_dt enabled not different), on other systems speed is normal. Did anyone have same issue?

Thank you for answer!

1 Like

Regarding your first question; Which platforms are you talking about? Could it be that you are using different compressions in your texture_profile?

Windows 7 x64 on all systems. Project same - texture compressing not usage

So, to make sure I understand. You have the same game (and same state) running on two different machines, and they differ in memory usage (50MB versus 1GB) ?

Regarding your second issue, could it be related to the VSync on those machines? There is a discussion here with a workaround (at the end).

1 Like

Yes you right understand. If need I can make any tests or write machine configs.

I write about this problem on github - https://github.com/defold/editor2-issues/issues/585 but not progress :frowning:

About second issue I read - thank you.

1 Like

Have you tried viewing the some of the profilers, like the visual one (http://www.defold.com/manuals/debugging/#_visual_profiler), are there any difference in Lua memory usage between the computers?

1 Like

Thank you. I try and post screenshots here.

2 Likes

First screen with troubles - http://clip2net.com/clip/m86375/c5bb0-clip-631kb.png

1 Like

Screen without triuble - http://clip2net.com/clip/m86375/1d398-clip-337kb.png

On both screen same build

Hmm, a few more questions:

  • How big is your bundle on disc?
  • Do you use collection proxies?

Bundle after create in Editor 1? Or build only?

Yes I use collection proxy

Yes, via “Project -> Bundle -> Windows Application…”

Ok, and in both screen shots, is it exactly the same proxies loaded?

Bundle 28MB

Yes its same proxy - only first level have 8 collections and 3 GO

Ok, with 28MB, it shouldn’t get even close to 1GB in memory usage :confused:

@sven, @Ragnar_Svensson, do you have any ideas?

Not a clue! I’ve never heard of anything like this before. I think we should finalise and ship the memory profiler. I have a feeling the suspicious GB wouldn’t show up in it, but in any case it would be a clue to what’s going on.

Hi, Ragnar.

You make memory profiler? I need wait?

I make video with memory utilization - https://www.youtube.com/watch?v=IFBOP8J8Ml0

1 Like

Thanks for making the video! We will investigate what it would take to ship the memory profiler. It’s an old project that wasn’t finished. I think that would be the easiest way to investigate this further. The other option which you can do right away is to slice your game and see how the memory changes. E.g. start with an empty project and then gradually add things and see how the memory is affected. This is not a fun process, but it could lead to us understanding what is going with the memory a lot faster.

I slice project for every layer. One layer utilization about 150-200mb memory.

Would you mind sharing (via Defold Dashboard) your project with me (bjorn.ritzl@king.com) so I can take a look and see if it happens on OSX as well?

1 Like

Send in PM link for early build. Memorry issues present anyway.