Jump to content
The Dark Mod Forums

Recommended Posts

Posted
2 hours ago, stgatilov said:

Yes, I see that every second or so everything in the game stops by 15-30 ms.

Something about "s_showprimitives" or that I have that showing without the console in-game is presumably doing this/that..

 

bhm_banner.jpg

Posted

Okay, I think the reason is that the game saves the complete history of game console in memory 🤣

r_showprimitives generates a lot of spam, basically 300 lines per second on 300 FPS.
So after 5 minutes you have 90000 lines of text in memory.

Also, the addition of the new line to the history uses the original method Append instead of the AddGrow I added.
While AddGrow doubles array size on every reallocation, Append only adds constant granularity on every resize, which is in this case 1024.

So e.g. every 3 seconds the history hits the new 1024N size and reallocates completely, having to copy the whole history again.

And one of the reason why this history is saved is condump.
So we can't just drop older lines...

Posted (edited)

Ouchie!

Ok, so only use those console commands sparingly and not all the time! 😂

Edited by Bikerdude

bhm_banner.jpg

Posted

I have changed to exponential growth in svn rev 11323.

You will still have these same stutters, but they will happen very rarely. In fact, increasingly rarely: the time between stutters doubles every time. So it won't bother you so much.

  • Like 1
Posted
21 minutes ago, stgatilov said:

You will still have these same stutters, but they will happen very rarely. In fact, increasingly rarely: the time between stutters doubles every time. So it won't bother you so much.

Your a little star, thank you for doing that :-)

bhm_banner.jpg

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

    • JackFarmer

      I will NOT return to Discord. Who wants to try something new?
       
      · 12 replies
    • JackFarmer

      I do not understand why Gilmour/Waters trash the "Atom Heart Mother" album and wish for that "all existing copies get dumped".
      I think it is a great recording. Is there something wrong inside my twisted little brain?
      · 3 replies
    • revelator

      Asus ROG strix x570-E gaming ryzen 3700x 32 gb ram radeon RX9070XT 10 tb ssd space (all full)
      · 5 replies
    • The Black Arrow

      I was playing Doom 3, and I learned how to edit maps text-by-text, this should help me a lot with finding secrets and locations I hope.
      That is, if I feel sneaky and greedy...Which I always do, can't get enough 100% a mission.
      · 3 replies
    • datiswous

      So on a regular basis I try to start building something in Darkradiant but very quickly I loose interest and give up.
      I tend to
      create a room, position an ai in it (or first ai, then room, probably better) put a light in it Put some stuff in it test the room in tdm Now I had this new idea:
      Start of with a gigantic room. To skip the importance of sealing for the time being and to think broader than one room. Then just use ground without wall, just to visualise the structure of the level.  Then just use prefab walls and other elements (arches, etc.). Just building area's that aren't enclosed. I can always close them at a later point. Maybe this is all very logical from a mappers perspective, but tdm is the first game where I have done any kind of real mapping and I always stop at the start. It just takes too long to make something exciting.
      I want to build something at some point, because over time I accumulated lots of ideas.
      · 21 replies
×
×
  • Create New...