Anuken / Mindustry-Suggestions

Repository for Mindustry suggestions and feedback
131 stars 58 forks source link

Sectors under attack #2910

Closed dfbsfdth closed 3 years ago

dfbsfdth commented 3 years ago

Describe what you would like changed, and why.

In the campaign, when the sector is under attack there is no proper simulation, and all of the player buildings are completly shut

Describe the changes you want to propose. Include possible alternatives.

I would realy aprtciate if You would make a proper simulation ps. english is not my first language

itcannotbe commented 3 years ago

Picture this. If your device can barely handle one actively played sector, HOW ON EARTH DO YOUU EXPECT FOR IT TO RUN ONE ACTIVE SECTOR AND MULTIPLE ONES IN THE BACKGROUND?

Even I want it to be so, it's impractical to say the least.

Ineedause commented 3 years ago

I know that Anuke does not like new settings, but it would be nice for people on higher end devices to be able to flip a setting that causes attacked sectors to run in the background.

itcannotbe commented 3 years ago

I know that Anuke does not like new settings, but it would be nice for people on higher end devices to be able to flip a setting that causes attacked sectors to run in the background.

But that would leave inconsistent experience with campain which is a paign.

I know, I switched them up.
genNAowl commented 3 years ago

I don't think simulating multiple maps is possible with the current Mindustry system.

Ksawi999 commented 3 years ago

I think that's possible, but then there should be a new slider in settings that sets the maximal number of sectors simulated in background (initially set to 0).

Sector171 commented 3 years ago

If we compare online games (huge map, tons of units..etc) with campaign, I think it costs X3 or more(from performance perspective) and we play online. Giving the player a chance to run more than one sector is bearable. If someone is using so bad mobile he shouldn't turn it to on, it is his responsibility. Making max as 2 is enough. Remember that all graphic operations which consume a lot will be out, so it will not be as ongoing sector.

Ksawi999 commented 3 years ago

Making max as 2 is enough.

Yep, 2 is enough for very many players, but I think it would be too small for advanced players with very good devices... After all, it's optional, so it should be much more flexible.

genNAowl commented 3 years ago

I think that's possible

All of the map rules, world tiles, entity quadtrees, and etc. are stored as basically static fields in Vars.java. If you know anything about java, you would also know that you can only have one instance of that field, no matter how many Vars.java classes are declared. However, to run multiple maps, you also need multiple instances of these fields. I don't see any easy workarounds to this, which is why I say it's not possible.

If you want to, your welcome to prove me wrong.

Kyllingene commented 3 years ago

If we compare online games (huge map, tons of units..etc) with campaign, I think it costs X3 or more(from performance perspective) and we play online.

Ah, but the server is doing the heavy lifting there; your client is responsible only for simulating what is necessary for interaction with the server.

Sector171 commented 3 years ago

Yeah, but practically when I was playing campaign never felt there is a lag or my battery was draining fast, but this became clear and problematic when started playing online. Apparently online games much heavier than campaign, at least for me.

Ksawi999 commented 3 years ago

Yeah, but practically when I was playing campaign never felt there is a lag or my battery was draining fast, but this became clear and problematic when started playing online. Apparently online games much heavier than campaign, at least for me.

On my phone everything works at 60 FPS, so I don't have much comparison...

github-actions[bot] commented 3 years ago

This suggestion is now stale, and will be automatically closed.