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

      Finally got my PC back from the shop after my SSD got corrupted a week ago and damaged my motherboard. Scary stuff, but thank goodness it happened right after two months of FM development instead of wiping all my work before I could release it. New SSD, repaired Motherboard and BIOS, and we're ready to start working on my second FM with some added version control in the cloud just to be safe!
      · 1 reply
    • Petike the Taffer  »  DeTeEff

      I've updated the articles for your FMs and your author category at the wiki. Your newer nickname (DeTeEff) now comes first, and the one in parentheses is your older nickname (Fieldmedic). Just to avoid confusing people who played your FMs years ago and remember your older nickname. I've added a wiki article for your latest FM, Who Watches the Watcher?, as part of my current updating efforts. Unless I overlooked something, you have five different FMs so far.
      · 0 replies
    • Petike the Taffer

      I've finally managed to log in to The Dark Mod Wiki. I'm back in the saddle and before the holidays start in full, I'll be adding a few new FM articles and doing other updates. Written in Stone is already done.
      · 4 replies
    • nbohr1more

      TDM 15th Anniversary Contest is now active! Please declare your participation: https://forums.thedarkmod.com/index.php?/topic/22413-the-dark-mod-15th-anniversary-contest-entry-thread/
       
      · 0 replies
    • JackFarmer

      @TheUnbeholden
      You cannot receive PMs. Could you please be so kind and check your mailbox if it is full (or maybe you switched off the function)?
      · 1 reply
×
×
  • Create New...