[4.1.3] WallSprites crash in software renderer

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
User avatar
Rachael
Posts: 13789
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her

Re: [4.1.3] WallSprites crash in software renderer

Post by Rachael »

What happens if you copy the entirety of the RenderSprite::Project function and dump it into RenderWallSprite::Project (and replace everything that's there)? Does it still crash?
User avatar
drfrag
Vintage GZDoom Developer
Posts: 3150
Joined: Fri Apr 23, 2004 3:51 am
Location: Spain

Re: [4.1.3] WallSprites crash in software renderer

Post by drfrag »

They look very different. Wall of errors.
User avatar
drfrag
Vintage GZDoom Developer
Posts: 3150
Joined: Fri Apr 23, 2004 3:51 am
Location: Spain

Re: [4.1.3] WallSprites crash in software renderer

Post by drfrag »

I've checked today's devbuild and as expected it crashes. The feature must have worked sometime as it was added in 2014 in "Q&D port of decal code to draw generic wall sprites". May be it was screwed after the floatification.
User avatar
drfrag
Vintage GZDoom Developer
Posts: 3150
Joined: Fri Apr 23, 2004 3:51 am
Location: Spain

Re: [4.1.3] WallSprites crash in software renderer

Post by drfrag »

Seems it's fixed for real this time, just made a PR. https://github.com/coelckers/gzdoom/pull/947
It was again introduced in the refactoring started with "move visibility calculation to LightVisibility", this commit: "move more of the light calculation code to the drawerargs".
User avatar
Rachael
Posts: 13789
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her

Re: [4.1.3] WallSprites crash in software renderer

Post by Rachael »

Why'd you revert the previous commit? That was still passing information to the drawers, that is now ignored.
User avatar
drfrag
Vintage GZDoom Developer
Posts: 3150
Joined: Fri Apr 23, 2004 3:51 am
Location: Spain

Re: [4.1.3] WallSprites crash in software renderer

Post by drfrag »

Sorry, the description said it fixed the crash and it still crashed. Now it doesn't crash so i thought it was not needed.
First i reverted it to investigate the issue with a different approach.
User avatar
Rachael
Posts: 13789
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her

Re: [4.1.3] WallSprites crash in software renderer

Post by Rachael »

We don't revert commits just because they say the wrong thing. Only if they actually cause major problems.

Needless to say, all that information was missing, and while you might say it didn't actually fix the crash, for me and Sanya it did, so obviously it did put in some necessary information, and did help to some extent.
User avatar
drfrag
Vintage GZDoom Developer
Posts: 3150
Joined: Fri Apr 23, 2004 3:51 am
Location: Spain

Re: [4.1.3] WallSprites crash in software renderer

Post by drfrag »

I know but for me it was not obvious that that information was needed else i wouldn't have reverted it. Your post came too late else i'd have changed the PR.
The fact is now it doesn't crash and that was the objective, i looked at the original commit and found that information was missing so somewhow i recreated that part.
User avatar
Rachael
Posts: 13789
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her

Re: [4.1.3] WallSprites crash in software renderer

Post by Rachael »

Thank you for that fix. :)
User avatar
drfrag
Vintage GZDoom Developer
Posts: 3150
Joined: Fri Apr 23, 2004 3:51 am
Location: Spain

Re: [4.1.3] WallSprites crash in software renderer

Post by drfrag »

You're welcome. :)

Return to “Closed Bugs [GZDoom]”