Jump to content
The Dark Mod Forums

Fan Mission: A Matter of Hours, by Springheel (28/4/2017)


Springheel

Recommended Posts

Ok, sorry i hadn't realized how old the discussion was, was tired and forgot to see the posting dates, just read the content and felt i should say something. Is the problem of not being that active in this forum, sometimes lose the flow of the discussion, but i'm glad you guys comprehend each other is a testament to the maturity of people on this community. :)

  • Like 1
Link to comment
Share on other sites

Also, since then I managed to learn a bit more about TDMs performance problems. While I’m all about using every polygon in as meaningful way as you can, that’s not the biggest problem for the engine. You can waste polygons here and there, and you’ll be fine. And, if the shadowmesh triangle count is too big, you can always use a simplified substitute.

 

IMO it’s the drawcalls that are much bigger problem. Number of tris per scene scale nicely with better graphic cards, but DC rely on CPU -> GPU pipeline, which isn’t something you can upgrade just like that. The thing is, number of DC rise quickly when you use meshes with multiple materials. Actually, I read somewhere that’s the “easiest” way to clog the CPU->GPU pipeline.

 

Now, TDM relies mostly on tiling textures, and TDM models use like 3-5 materials per model, on average. Some use like 8, 10, I think the highest number I saw was 12-15. That is generally avoided in other games, mostly because any model that uses multiple materials is split into smaller models, as per material, before rendering. So you might think you’re using one mesh, but you actually use 5, every time. Now every model uses DCs, every material uses DCs, every additional material stage in curly brackets uses more DCs (and increases the model triangle count).

 

To avoid this, models have to use as few materials (and textures) as possible, 1-2 at best. Making mesh tilesets, mesh varations that use the same materials, so the number of meshes used is higher than the number of materials is a good idea too. There are big compromises to be made here though. One is simplifying the surface sounds: if you have a model that is part wood, part metal, you have choose which surface is more “important”. It also makes modding more difficult for others. Only the original author knows reasons behind particular UV island placement on textures, and if someone uses mirrored UVs, the whole mindset and reasoning becomes too complex to recreate by anyone else.

 

Personally, I’m all for unwrapped meshes and using all low-poly tricks we know to save on performance, but, as you see, it’s not that simple, and it takes a lot of time. And it’s not like we’re going to see a major switch to that technique in TDM’s assets, for the reasons stated above, and because it would render a lot of current textures and materials obsolete. But that’s probably something for another topic :)

 

That's correct, a perfect example of this was my cathedral map. When it was first looked at by another member, every surface used the same texture with aligned edges, so the engine could batch surfaces and state changes and DC's were really low.

As soon as I started breaking up geometry and patches with different textures, DC's sky rocketed and performance dropped significantly.

I always assumed I'd taste like boot leather.

 

Link to comment
Share on other sites

  • 3 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recent Status Updates

    • Ansome

      Turns out my 15th anniversary mission idea has already been done once or twice before! I've been beaten to the punch once again, but I suppose that's to be expected when there's over 170 FMs out there, eh? I'm not complaining though, I love learning new tricks and taking inspiration from past FMs. Best of luck on your own fan missions!
      · 4 replies
    • The Black Arrow

      I wanna play Doom 3, but fhDoom has much better features than dhewm3, yet fhDoom is old, outdated and probably not supported. Damn!
      Makes me think that TDM engine for Doom 3 itself would actually be perfect.
      · 6 replies
    • Petike the Taffer

      Maybe a bit of advice ? In the FM series I'm preparing, the two main characters have the given names Toby and Agnes (it's the protagonist and deuteragonist, respectively), I've been toying with the idea of giving them family names as well, since many of the FM series have named protagonists who have surnames. Toby's from a family who were usually farriers, though he eventually wound up working as a cobbler (this serves as a daylight "front" for his night time thieving). Would it make sense if the man's popularly accepted family name was Farrier ? It's an existing, though less common English surname, and it directly refers to the profession practiced by his relatives. Your suggestions ?
      · 9 replies
    • nbohr1more

      Looks like the "Reverse April Fools" releases were too well hidden. Darkfate still hasn't acknowledge all the new releases. Did you play any of the new April Fools missions?
      · 5 replies
    • The Black Arrow

      Hope everyone has the blessing of undying motivation for "The Dark Mod 15th Anniversary Contest". Can't wait to see the many magnificent missions you all may have planned. Good luck, with an Ace!
      · 0 replies
×
×
  • Create New...