id Tech Forums

id Tech 4 (Doom3/Prey/Q4) => id Tech 4 Needs Help => Topic started by: vanbandama on March 13, 2016, 07:57:04 PM

Title: Iprove id tech 4 performance
Post by: vanbandama on March 13, 2016, 07:57:04 PM
Hi ! I'm new to forum so if I posted in wrong section, be polite and redirect it to correct one ;)

Going straight to topic. Is there someone who tried to code in source of Q4/Doom3 engine to improve performance? for displaying more than 4 enemies at once? I know motorsep from kot-in-action that he's working hard for his new game. But he told on doomworld forum that he will release his own version of engine. And it was relatively long ago.
https://www.youtube.com/channel/UC7UIr8VjpTkrJxSI1sb-8dA - link to his YT channel where he upload his WIP game and engine features.




Title: Re: Iprove id tech 4 performance
Post by: The Happy Friar on March 13, 2016, 09:07:22 PM
Motorsep does have an improved engine, pretty nice.

I'm not 100% there are stock D3 GPL engines that improve things, but there's D3 BFG engines that improve things.  However, D3 BFG improves things anyway, so I'm not really sure what was an id improvement vs a GPL coder improvement (I don't own D3 BFG).
Title: Re: Iprove id tech 4 performance
Post by: VGames on March 13, 2016, 09:22:12 PM
I use the Sikkmod 1.2 source which is based on the old 1.3.1 SDK and I have no trouble running the game with 4 or more enemies on screen at 1 time. Don't understand this thread.
Title: Re: Iprove id tech 4 performance
Post by: motorsep on March 14, 2016, 01:19:39 AM
Our engine won't work for Doom 3 as-is. When released, you'd have to tweak a few things to make it work with Doom 3, and the you'd need some assets from Doom 3 BFG, but all the models/textures from original Doom 3. Materials would have to be tweaked too. It would be more useful for some projects that you'd be building from scratch.
Title: Re: Iprove id tech 4 performance
Post by: trebor on March 14, 2016, 05:35:22 AM
Vanbandama you might want to look through this topic because someone tried to render really many monsters monsters there.
In the end you will have bigger problems with the gamecode and scripting than the BFG renderer.

http://idtechforums.fuzzylogicinc.com/index.php?topic=198.0
Title: Re: Iprove id tech 4 performance
Post by: motorsep on March 14, 2016, 08:03:50 AM
For that many monsters one would need LOD, rendering shadows only at a certain distance, dynamic batching and AI modification so that only a handful of monsters care for player at a time.

So, still some rendering tricks are needed and neither our engine, nor RBDoom3BFG provides those.

At this point I am still struggling to understand why not to use UE4 so a project that is drastically different from what BFG or old idTech 4 can handle :/
Title: Re: Iprove id tech 4 performance
Post by: The Happy Friar on March 14, 2016, 09:58:31 AM
Motorsep, if one wanted the visual features of D3 but Wolf3D/Doom baddie count, would DarkPlaces be a better engine?
Title: Re: Iprove id tech 4 performance
Post by: motorsep on March 14, 2016, 11:54:41 AM
Quote from: The Happy Friar on March 14, 2016, 09:58:31 AM
Motorsep, if one wanted the visual features of D3 but Wolf3D/Doom baddie count, would DarkPlaces be a better engine?

Probably won't matter. If polycount is low enough and AI is tweaked, it should run just fine with our engine. If dlights are set to be blend lights, then it should be equal to DP to a certain point. DP has deferred rendering, so at some point it would beat BFG if many dlights are used (projectiles, muzzle flashes).

I have a video showing massive crowd of enemies with stock BFG engine. What was bogging performance down was AI - all enemies were doing navigation toward player at the same time and attacking at the same time. 60 pinkies weren't as taxing though.

I think people overthink it when it comes to enemy count. It all depends on the game. Even if someone makes zombie game, then can still manage enemy count in some creative ways and keep performance up using BFG engine.
Title: Re: Iprove id tech 4 performance
Post by: motorsep on March 15, 2016, 12:52:23 PM
Btw, CryEngine is free now, and with source code open. So maybe trebor can look up the code and see what kind of optimizations they have for performance, and improve RB Doom3 BFG :)
Title: Re: Iprove id tech 4 performance
Post by: EoceneMiacid on June 13, 2016, 06:17:02 AM
Bit late to the thread, but I don't see the problem either.

I'm experimenting with combat scenarios, and my modest i5 laptop with integrated Intel graphics, running the game on Ultra at 1920x1080 resolution, can handle well up to ten zombies at once without skipping a frame.