Will nuts ever be playable on zdoom?

Discuss anything ZDoom-related that doesn't fall into one of the other categories.
Post Reply
invictius
Posts: 429
Joined: Fri Aug 03, 2012 6:44 am

Will nuts ever be playable on zdoom?

Post by invictius »

I mean people never thought nuts would ever be playable on vanilla, though I guess that's more due to the speed of a single core doubling every six months. Unless a theoretical port dedicated an entire core to monster AI, I'm guessing it will probably never happen without cpu speed becoming 50x faster than what's available today.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49056
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Will nuts ever be playable on zdoom?

Post by Graf Zahl »

If someone can magically increase max. clock frequency to 8 GHz it should be doable if renderer and game logic can also be separated onto different cores.
The single biggest performance issue here is still the sprite rendering, not the monster AI.
User avatar
Nash
 
 
Posts: 17433
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: Will nuts ever be playable on zdoom?

Post by Nash »

I hope I live long enough to experience nuts.wad at full 60 FPS :mrgreen:
User avatar
jpalomo
Posts: 771
Joined: Mon May 17, 2010 9:45 am

Re: Will nuts ever be playable on zdoom?

Post by jpalomo »

Couldn't prboom handle it at a decent frame rate on high end hardware? I remember seeing a video of it.
User avatar
Hellser
Global Moderator
Posts: 2705
Joined: Sun Jun 25, 2006 4:43 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 11
Graphics Processor: ATI/AMD with Vulkan/Metal Support
Location: Citadel Station

Re: Will nuts ever be playable on zdoom?

Post by Hellser »

nuts runs fine on PrBoom+ for my computer. But do not compare PrBoom+ with ZDoom. The logic between the two - while similar - are vastly different. I'm no programmer. But from my understanding, ZDoom has a lot more "checks" to go through for every actor. You know. Features that you all requested. It takes a toll on the engine when you decide to throw more monsters at the screen than you can shake a stick at.
Nevander
Posts: 2254
Joined: Mon Jan 06, 2014 11:32 pm

Re: Will nuts ever be playable on zdoom?

Post by Nevander »

What I'd like to know is what is it about nuts that causes the massive FPS plummets whereas Holy Hell MAP05 runs pretty well for me only dipping to about 40 or so which makes sense. Why does nuts tank the performance? Is it because of the monster types and no walls to close off the visible areas? If the Cyberdemon horde was swapped for Zombiemen would the performance not tank?
User avatar
Enjay
 
 
Posts: 26517
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: Will nuts ever be playable on zdoom?

Post by Enjay »

I actually played it the other day using the bullet time mod. For some reason, all the time freezing kept things reasonably playable and I kept going until I had 100%:kills.
User avatar
drfrag
Vintage GZDoom Developer
Posts: 3141
Joined: Fri Apr 23, 2004 3:51 am
Location: Spain
Contact:

Re: Will nuts ever be playable on zdoom?

Post by drfrag »

Nevander wrote:Why does nuts tank the performance?
I think it's becouse all monsters are activated at the same time.
User avatar
Nash
 
 
Posts: 17433
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: Will nuts ever be playable on zdoom?

Post by Nash »

Enjay wrote:I actually played it the other day using the bullet time mod. For some reason, all the time freezing kept things reasonably playable and I kept going until I had 100%:kills.
Interesting. Could it be that because the world is frozen, the monsters' Tick() methods are not being ran, therefore saving up on CPU cycles?
User avatar
Rachael
Posts: 13530
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Contact:

Re: Will nuts ever be playable on zdoom?

Post by Rachael »

The problem is A_Chase and A_Look. A_Look is not as costly, but you will notice even if you run "notarget" and play the map it does not have as big of a performance impact as letting the monsters run wild.

If you really absolutely must have a playable nuts.wad - you will need to recreate all the monsters it uses using a more simplified (probably just copied from the original DS and translated to ZScript) A_Chase function. However keep in mind that even this will not magically solve all your problems - there's still the overhead of other parts of the engine which will bottleneck the performance in various ways.

Yes, Graf is right that the sprites themselves do cause problems - but they're only part of the bigger problem in running nuts.wad on ZDoom.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49056
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Will nuts ever be playable on zdoom?

Post by Graf Zahl »

A scripted A_Chase is a lot slower than the native version, though, so this won't do much good.
User avatar
Rachael
Posts: 13530
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Contact:

Re: Will nuts ever be playable on zdoom?

Post by Rachael »

Yes, that is true, but even a simplified A_Chase will still perform better than the current one.

Idea: A_NativeChase and A_NativeVileChase? For lack of a better term.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49056
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Will nuts ever be playable on zdoom?

Post by Graf Zahl »

Actually, that won't help that much really. The main problem is not A_Chase but what it calls internally, down to P_TryMove and PIT_CheckThing
User avatar
ibm5155
Posts: 1268
Joined: Wed Jul 20, 2011 4:24 pm
Contact:

Re: Will nuts ever be playable on zdoom?

Post by ibm5155 »

nuts has the same problem as my raytracing brute force demo, the problem isn't the render and the monsters being activated, but yes the math behind the code to check if a monster see and hear the player, it's not a 1+1 like math, it plays with sqrt, pow and even other demanding methods where using for 1000 cases is ok, but not for 100000000 cases. (and you can do whatever magic you want to save performance, but at the end you'll end up just saving 1 - 3fps)

I'll just do a guess, but gzdoom may be just faster because of the render overhead that is not done 100% by the cpu
jooch
Posts: 1
Joined: Sun Dec 02, 2018 9:21 pm

Re: Will nuts ever be playable on zdoom?

Post by jooch »

Sorry for replying on this old topic, but i felt it was necessary.

I'm amazed that the devs are actually responding to this, i mean you can get great performance if you tune the video settings. And lets be honest, for a map this silly some measurements must be taken.

Running gzdoom on an old dualcore AMD, no problem:
Post Reply

Return to “General”