YoYoGames / GameMaker-Bugs

Public tracking for GameMaker bugs
26 stars 8 forks source link

Room Editor: Lots of objects being in a 60k by 60k room and then editing that room causes "lag" #2595

Open hiban111 opened 10 months ago

hiban111 commented 10 months ago

Description

I have a big room with a lot of objects for an open world in it and it lag in the ide but not in the game I wonder if it is a engine problem because I tried on two computers and still the same problem.

Expected Change

not lagging

Steps To Reproduce

  1. Start GameMaker
  2. create a big room with a lot of objects
  3. See the issue

How reliably can you recreate this issue using your steps above?

Always

Which version of GameMaker are you reporting this issue for?

2023.11.1 (Monthly)

Which operating system(s) are you seeing the problem on?

Windows 11, Windows 10

Are you running GameMaker from inside your Steam library?

None

Contact Us Package Attached?

Sample Project Added?

YYDan commented 10 months ago

Thanks for sending this, but we'll need to see a project which causes this lag on your machine - we have no idea what's in your objects, or what number is "a lot", and it's not as widespread/simplistic an issue as your steps would suggest.

The project is almost always required for anything to do with "performance" or "lag", so please do send one with any reports.

I'll leave this open a little longer so you can either publicly attach a small sample (i.e, the simple steps you listed) or give us a download link to a private larger project which gives the problem on your machine.

hiban1 commented 10 months ago

Ok but I dont know how to use github were to share my source code (I dont want it to be public) and don't even know if I can share it with you guys because it can leak and I worked a long time on this project.

YYDan commented 10 months ago

You do not need to use GitHub to send us your code (indeed, we ask that people don't do that...) - we simply need a File > Export of the project. And yes, you can send it to us in such a way that it's kept private.

All of this information is on the Readme here on the "Code" page of this bug database image

And also in the more in-depth FAQ that Readme and our bug-reporter tool link to.

hiban111 commented 10 months ago

ok I sent you the files of the game but without the code, but still have the lag in the "street" room, I've rote my github name in the bug repport .

Edit: #2616

hiban1 commented 10 months ago

Ok after some esperiences in my IDE my conclusions is that game maker is not optimised to have a lot of objects in one big room 60 000 x 60 000, to reduce the lag you can make the objects invisible in the IDE in the layers menu by clicking on the eye. Do you guys plan to do something to optimise this ?

YYDan commented 9 months ago

60,000x60,000 is truly enormous (just think how many 1,920x1,080 screens that is) - no matter what changes we make, you may wish to consider using smaller rooms to improve performance all-around.

hiban1 commented 9 months ago

Ok but how I'm supposed to do an open world if I can get only 10 screens in 1 room, but it's lagging only in the IDE, not in the game, the problem is when there is a lot of sprites in the IDE and I'm moving in the IDE, I also believe it's lagging from the objects not the tile. So : I think I've choose the wrong game engine when I had the idea of my game, but I have no choice now that I've started.

I also think you can improve it because like I said it's not lagging in the game, only in the IDE.

Maybe you are loading the sprites all the time instead of doing it once because I can't understand why with the graphic quality I use which is maybe 1/1000 compare to an AAA game it's lagging, I'm sure this can be improved.

Anyway thanks for the answer.

TrippsterGaming commented 7 months ago

hey Hiban1, I too had this issue. I made a platformer with 1 massive map 70,000x60,000, with over 15,000 objects and 15,000 sprites. I'm just looking to see if they've fixed it as I want to make another map and it really is a massive massive difference when I make a new room and start working on it. The lag probably cost me 60+ hours in the first map. In addition, opening the engine with the large room previously open causes the engine to take 20+ minutes to start, on my $2,500 pc. Closing with the room open takes 10+ minutes. Frankly this is ridiculous and unacceptable but, like you, I am stuck with the engine now.