Jump to content
The Dark Mod Forums

[Resolved in TDM 2.10] Why does an FM take so long to load - not a complaint really


Oldjim

Recommended Posts

Purely out of interest I decided to run the resource monitor while loading an FM and found that the limiting factor is my CPU which hits about 85% to 90% for the duration (about 45 secs)

I know that I have a low powered processor E6750 core 2 duo but I am surprised that it takes that long when other games are much quicker

Is this normal and would a much faster processor speed it up a lot

Link to comment
Share on other sites

No idea how hardware-dependent the load times are. I have a faster processor and a 4gb graphics card but I get slower load times than that on big maps.

 

99% of the time after the loading bar finishes but before the map is playable is spent in an engine routine that looks like it's preprocessing textures: idImage::ActuallyLoadImage(). Most of that time is spent calling some openGL routine in the graphics card driver, in my case atioglxx.dll. The routine is:

qglTexImage2D( GL_TEXTURE_2D, 0, internalFormat, scaled_width, scaled_height, 0, GL_RGBA, GL_UNSIGNED_BYTE, scaledBuffer );

 

I don't know what the driver's doing. I was curious about the same question yesterday and I got the above details from visual studio profiler, but I don't know anything about graphics drivers so the above is as much info as I got from the exercise.

Link to comment
Share on other sites

The system spec is such that I would need to replace everything except the graphics card to get a significant increase

The only cheap upgrade is to change from a Core 2 duo to a core 2 quad other than that it would mean a new motherboard, memory (present memory isn't compatible with a new MB) and CPU

The core 2 quad would give me about 90% better multi-threaded performance and cost about £70 for a Q9550 or a Q6600 for about £30 would give about 70% better performance

Actual system spec

Motherboard Gigabyte GA-P35-DS4

CPU Intel Core 2 Duo E6750

Memory 4GB DDR2

Graphics card Nvidia 650Ti 1GB memory

 

Actually with my screen resolution 1680 x 1050 I don't have many problems

Thief 4 works in 32 bit mode but I won't be playing that again as it is boring

Far Cry 3, Dishonored, Crysis etc.all run OK

I did seriously consider upgrading to a quad processor for Thief 4 but I am glad I didn't

 

I probably won't do anything until I have to as I can get a new M/B, i5 CPU, and 8GB Ram for under £300 (CPU prices have dropped as lot since I last looked)

Edited by Oldjim
Link to comment
Share on other sites

It won't be much consolation, but it used to take even longer.

They did some optimizations (like culling out redundant data) a few versions ago that made it load faster now.

But yeah, it's still slow.

 

I remember reading about other optimizations that are possible, but they'd compromise the game or break old maps or something like that, so couldn't be done.

 

The only bright side is that once the map is loaded in, restarting or reloading is a snap.

What do you see when you turn out the light? I can't tell you but I know that it's mine.

Link to comment
Share on other sites

AFAIK other games are faster at loading time because they use streaming to fetch stuff from the HDD at run time, but imo they become limited when you need to reload the game fast, for example when dying, idtech4 instead puts the entire level on memory so it takes time to load at first but when you die it reloads almost instantly.

Link to comment
Share on other sites

As far as we've discussed in an other recent thread, the longer part of the loading sequence does indeed involve the CPU over anything else: loading from disk to memory and from memory to VRAM is pretty fast on most systems. But besides that, the game does a lot of calculations (I'd guess texture decompression, loading and setting up the script engine and entities, pre-calculating other stuff?) which, AFAIK, are not threaded. Which means that to improve these loading times, you'll need faster CPU cores: going from dual core to quad core shouldn't change much, instead try to get a higher-clocked (or overclocked) CPU.

 

Nevermind that. Hadn't seen SteveL's post, which instantly reminded me that on my ATI card that part of the loading had once improved tremendously by switching to a different driver release -- that unfortunately completely botched the rendering. So maybe it's some sort of long, unoptimized loop of calculations between the game thread and GPU driver. I wonder if something could be done to help with that.

Edited by Briareos H
Link to comment
Share on other sites

I looked into that but from the system monitor that doesn't appear to be the bottleneck as the peak transfer speed during the loading is well below the maximum it can achieve

The only real advantage of an SSD would be for the Windows 100GB boot partition but as I very rarely reboot the computer that isn't a concern and the programs which are on that partition all run quickly

Note that all my games are on a totally separate drive

Link to comment
Share on other sites

  • nbohr1more changed the title to [Resolved in TDM 2.10] Why does an FM take so long to load - not a complaint really

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!
      · 0 replies
    • 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...