Feedback
Closed
Clucky movement in Marion crypt lvl 2
Zeeboo
·
Good evening!
I have a problem with clucky movement in Marion crypt lvl 2. I Will post a video of it. If anyone has a solution, please reply:)
Have a great day and stay safe”)
Attachment not imported from Discord: VID_20230712_210032.mp4
Discussion 40
Sign in to join the discussion.
Sorry for the noise… Was watching tennis.:)
Hi @Zeeboo! Thanks for sharing this. Do you mind sharing some details about your PC hardware?
This is the first I think we’ve heard/seen of this.
Are you seeing this in any other monster-heavy rooms? Or any other rooms whatsoever?
This room does have an issue where it gets laggy.
I believe it happens as all the statues die and are replaced by skeletons. Unsure of the exact ‘cause’
@fattymoo remember this?
After you kill all the statues I suggest letting the room reset by leaving for a half a minute and returning.
I remember that this was an insanely complicated map. @Invader Q had to cut it in half because of performance issues.
Crypt3a has entered the chat.
There was always some choppiness in there but it’s noticeable on lower spec systems - the image appears to be from a laptop - which is where I’ve mainly experienced it. Best suggestion for now I have is above until we can debug the issue.
Oof - that’s very bad in the video .
@si If you have profiling working, it would be worth walking around this room some and posting the results
@DavidKlaw Good evening. I have a laptop Medion, i3 intel 2,3GHz,4gb ram, gforce 630M 1GB.
I play more complex games on this laptop and they work.
I haven’t explore the whole map so I can’t say for sure but I have been to the island and castle victoria and with no lag… I have this problem for more than 3 months… I tried today and it still laggs..
Ty all for such a quick reply’s:)
@Zeeboo is this a new issue (like it used to perform just fine 3 months ago and then something changed?)
I had chunky movement last night as well - assumed it was my bottom of the barrel dell laptop but it looked a lot like that video. I was on the island.
@Zeeboo one last question, if you switch to use the software renderer [menu: Game > Configuration > Software Renderer (option ticked)] do you still see the same issue in crypt 2? This would be very helpful to know.
Good day everyone! @si first time having this problem was 3 months ago but I just thought it was my bad connection … then 1 week ago I tried again and it was still chunky .. and was trying for the last few day and its still lagging but only in Marion crypt 2 …Still I haven’t discovery the whole world so I cannot say for other places. I will try switching software renderer when I come home:)
Good evening.
I have just tried and enter Marion crypt 2 with software renderer on and it doean’t solve the problem.
That makes some sense.. it’s probably walking the BSP tree that’s slow, not the rendering itself. @si were you about to get profiling results?
I have some quick preliminary results with hot spots in the hardware renderer and nothing obvious outside of that (so far) will continue to investigate and share some results shortly
@Zeeboo this is an incredibly long shot - but when you are next in the crypt could you try and disable the map and see if it changes anything with performance for you?
Game menu > Iterface Features: Show dynamic map (disable this one)
If you could try this and report back here that would be awesome
I believe that area recently had some missing textures / holes in the bsp tree fixed. Not sure if that changes your investigation at all
I see that MarDun02.roo is the largest of the roo files, at over 500kb. That’s at least 3x the size of most rooms. The BSP tree must be super complex
What’s odd is that the number of vertices sent to be drawn is huge even if I’m in a little side chamber looking at the wall. It’s as if the whole room is being drawn even if I can’t see the complex area at all.
Perhaps related to the full screen mode updates? Strange the issue was also taking place in the software renderer. I’ll take a look and see if there is some overlap with those changes
Are we sure there’s actually a recent performance change? I don’t think any of your recent changes would have any effect. The only thing I can think of in the last few months is that the internal representation of the BSP tree went from int to float. If your machine didn’t have hardware floating point, then, yeah, you’d have a really bad time, but floating point hardware has been standard for decades now
The hardware: “i3 intel 2.3GHz, 4gb ram, gforce 630M 1GB”
OK, yeah, that would have floating point hardware.
It’s not clear to me that this is a recent change, it just says the problem has been around for “more than 3 months”
i.e. it could have always been there
It seems the first time this problem appeared was around 3 months ago which suggests before that it was ok/better
This has been since the room was introduced in 2003. There was an update that made it slightly better during NDS but it’s always been this way.
Where do you see that? Q saw performance problems in this room many years ago.
Oh OK I see now
I was thinking of this change I made in March: https://github.com/Meridian59/Meridian59/pull/444/files Don’t think it was released until much more recently though, as in the most recent release a few weeks ago
The time frame could be a red herring; this room is indeed huge
FWIW, that didn’t get released until last month: 6/21/23
I see well over 100000 vertices being submitted even when I’m in the corner of the room looking at the wall, which I don’t understand
Could quickly back to some commit to compare, like this one from 2019:
d90194ahttps://github.com/Meridian59/Meridian59/commit/d90194a68806f6690c7b980235a35533ee4763f6I’m not seeing a frame rate problem though
It’s a pretty complex map that was built with further expansion in mind - wondering if the large pit is part of the problem - it draws all the way down - but has no floor texture at the bottom, the bottom of that pit is the actual floor, the floor of the room is much lower than any other room - other rooms have upwards verticality but the ceiling to floor height there is large - Crypt 3 has a similar verticality where it draws the same pit feature - but the choppiness isn’t an issue there and the surrounding room layout is tighter.
The verticality doesn’t matter. It’s all those little diagonal lines. The way the BSP tree builder works is it picks one line segment, then divides the room into left and right halves based on the line that contains the segment. Any other segment that intersects it gets split into two. The way this room is built, there are likely hundreds or thousands of splits.