Level Design Contest #34 - Playing Phase (Discussion Topic)

Started by IchoTolot, November 15, 2026, 02:52:59 PM

Previous topic - Next topic

JRT and 3 Guests are viewing this topic.

JRT

Wait hang on, are you saying the level in the game is laggy? That doesn't make sense as the engine prepares the level from the file by rendering all the stacked terrain and groups then flattens the whole thing for the game itself to run on.

I believe this is the case, perhaps a subject matter expert could chime in on this.

Your lag can't be to do with that but maybe instead the level map size is a bit too large? Which is super annoying because it's smaller than the other by quite a margin and I've seen similarly sized levels before. Sorry about this!

If it is an issue I might try to compress the map size a bit. I'll likely be able to save 100 pixels of width and maybe 50 to 75 of vertical which should save about a sixth of the window size which could help a fair bit.

JawaJuice

Quote from: JRT on Today at 12:29:04 PMWait hang on, are you saying the level in the game is laggy? That doesn't make sense as the engine prepares the level from the file by rendering all the stacked terrain and groups then flattens the whole thing for the game itself to run on.

I believe this is the case, perhaps a subject matter expert could chime in on this.

Your lag can't be to do with that but maybe instead the level map size is a bit too large? Which is super annoying because it's smaller than the other by quite a margin and I've seen similarly sized levels before. Sorry about this!

If it is an issue I might try to compress the map size a bit. I'll likely be able to save 100 pixels of width and maybe 50 to 75 of vertical which should save about a sixth of the window size which could help a fair bit.

Super laggy, yeah. I do get this with very large maps but I think GigaLem's R3 is a bigger map than this one and it doesn't lag as much, so I'm not sure the map size is the issue that causes it - I don't know enough about the physics engine to say what else it might be though I'm afraid. I wasn't actually spam-clicking on loading either, I was patiently waiting for it to load each time and yes, it would take 10 seconds or more. That's fine, but what I can't be doing with is random exceptions being thrown that cause the level to crash NL occasionally. That might not be something you're seeing if you're running a fairly high-end rig, but on my machine (Acer Concept D laptop, Windows 10), it's probably running out of memory or something like that.
Reverse Lemmings: Megadrive
Collaboration pack with Guigui. 60 Medium-Hard levels.

JawaJuice

Reverse Lemmings: Megadrive
Collaboration pack with Guigui. 60 Medium-Hard levels.

kaywhyn

I've updated the pack which includes JRT's late R2 level submission, as well as the music pack to include the music track for the level.

Only thing is I haven't yet included lemmkeev20's R1 level, as there is a background for the level which needs to be in the "Special" style, and I'm not sure what the policy is on that regarding backgrounds added to that particular style. My guess is that it's perfectly fine this way, but I'll let Icho handle this on whether he thinks the level with the background is fine. The level itself is fine as it satisfies the R1 ruleset, that's not the problem.

Regarding JRT's R2, oof yea, it takes a super long time to load up before the preview screen even shows up. It takes nearly 15 seconds for me, and my laptop is a pretty powerful high end tier machine too. However, I can confirm that the level runs perfectly fine for me and that while the lag is there, it's not super laggy in any way in the sense that FF nearly runs at normal speed for me when I have it engaged on the level. This is even with the high quality mini-map enabled, which will contribute to the lag, but it's quite manageable for me even with it on. Turning it off should reduce or even outright eliminate the lag altogether, so for anyone experiencing a lot of lag on the level, try unchecking the high quality mini-map in Settings on the main menu. Even if it doesn't get rid of the lag entirely, it should help a lot. 

JawaJuice

@kaywhyn Solution for your updated R3 - pretty sure it's intended this time! Ingenious level, I have to say :thumbsup: Once again, it's in no way obvious what you're supposed to do with that blocker; took me ages to figure out! Then I kept running out of time before I realized I needed to tweak my strategy slightly.

Spoiler
The RR fiddling was unnecessary - something I was trying in earlier attempts and forgot to remove.

Reverse Lemmings: Megadrive
Collaboration pack with Guigui. 60 Medium-Hard levels.

JRT

Ooohhh thanks for the pro tips kaywhyn. So that should help, so yes the main issue is loading the previews in level select and booting the level.

Once you're in and the hatches open it should be fine. My understanding is that as the level size scales there's a problem with having to check collisions at every pixel.

My action plan is as follows.

1. Slice off pixels by just compressing the level a bit, the train delay scaffold can be narrower and the cake structure can sit closer to the decoration on the left. I'm hoping this resolves the lag in game.

2. I'm super busy ATM but I might try and write an algorithm that takes all the terrain groups and prunes elements out that would be obscured by elements on top. So essentially making my pixel arts more efficient, although the way grouping works I'm not sure that would necessarily work.

In the meantime, try to enjoy the level the best you can. It took an insane amount of faff. It's a play on the scene on the box art of the original Amiga release of lemmings and the pixel arts are made entirely out of OG lemmings and lemmings 2 terrain pieces.