Jump to content
The Dark Mod Forums

[LINUX] tdm unplayable on intel cards, but it can be worked out


zss
 Share

Recommended Posts

tdm uses dds a lot.

but, on linux, intel drivers does not supports s3tc due software patents.

if you run tmd on intel card, it's just shows black screen with mouse pointer and plays nice main menu theme. and there is will be a lot of "Couldn't load image" warnings in log.

at least console is functional, so it's possible to bring it up and type "quit" :)

 

in my understanding, it's possible to write a script which will generate additional pk4 files with uncompressed tga textures, so d3 engine will use them instead of dds, so tdm will be playable on intel gma powered linux.

i can handle coding and testing, i have x4500 (G43) and x3100 (GL960) hardware.

 

but, i'm not familiar with doom3 engine in general, and tdm specifics (if any) in particular, so i will need some advice here.

 

on the other side, on the same hardware, vanilla doom3 is playable.

as far as i can see from pk4 contents, it's uses dds a lot too.

i suppose, vanilla doom3 detects lack of GL_EXT_texture_compression_s3t extension and does unpacking manually.

but, somehow, maybe as effect of tmdlauncher's work, same workaround does not works on tdm.

 

wheresoever, i will be glad to see any feedback.

Edited by zss
Link to comment
Share on other sites

In order to keep the mod size down, the distributed package only contains DDS versions of many textures. The vanilla Doom 3 installation includes TGAs as well as DDS, which can be used if texture compression is unavailable or turned off.

 

Maybe two versions of the Dark Mod could be distributed, a regular one with DDS textures and a "large" package that also includes TGA textures. I suspect this large package would end up several gigabytes in size however.

Link to comment
Share on other sites

In order to keep the mod size down, the distributed package only contains DDS versions of many textures. The vanilla Doom 3 installation includes TGAs as well as DDS, which can be used if texture compression is unavailable or turned off.

 

Maybe two versions of the Dark Mod could be distributed, a regular one with DDS textures and a "large" package that also includes TGA textures. I suspect this large package would end up several gigabytes in size however.

 

I don't think we are prepared to handle the overhead, just for the small number of linux-intel users. We not only need to distribute two packages, but also to create them, so we either keep the TGAs around (which we really don't, having two copies of everything and that much space) or we have a create-tga-package-script, which then will run for a few hours...

 

I would be one of the people it might help, but even with TGAs, TDM makes only 1..2 FPS anyway on my laptop, so it is unplayable.

 

(First poster should check that TDM actually makes more than 1 FPS :)

 

Writing a script that

"The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man." -- George Bernard Shaw (1856 - 1950)

 

"Remember: If the game lets you do it, it's not cheating." -- Xarax

Link to comment
Share on other sites

Script in attachment.

it can generate additional packs with decoded tga textures, as it can be used for in-place texture insertion (useful for fms).

license: public doman. it requires image magick.

on my core 2 quad Q9400, using single core it takes less than 4 minutes to process all tdm files. generated files are 575mb in size.

 

I would be one of the people it might help, but even with TGAs, TDM makes only 1..2 FPS anyway on my laptop, so it is unplayable.

semi-playable on g43, 25 +/-10fps on 800x600 in training mission.

textures sizes does not makes any difference:

performance of image_downSizeLimit 512, image_downSizeBumpLimit 512 image_downSizeSpecularLimit 265

and

image_downSizeLimit 2, image_downSizeBumpLimit 2, image_downSizeSpecularLimit 2 differs by 1-2 fps.

 

not playable on GL960 it's 15 +/-10 fps on 800x600.

 

buy the way, i will be extremely happy if someone confident will review script, just in case.

regenerate_textures.txt

Edited by zss
Link to comment
Share on other sites

We actually have (or should have) original TGA versions of textures in a separate repository, which would be better than decoding the DDS in terms of quality. I guess a client-side script would save bandwidth however, if quality was less of a concern.

Link to comment
Share on other sites

  • 1 month later...

It works great, thanks!

 

cd darkmod
sh ../regenerate_textures.txt -i `find . -name \*.pk4`

 

Also, to get decent framerate, I had to set this in config:

 

seta image_downSize "1"

 

It would be nice to have the script included in the distribution.

Link to comment
Share on other sites

  • 2 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.

 Share

  • Recent Status Updates

    • STiFU

      We are taking our son on his very first holiday trip to see the sea for the first time. 🙂 Will be back in a week.
      · 0 replies
    • Gilkar

      When I was a young man my father was so ignorant I could hardly stand to have him around. As I grew older I was amazed at how much the old man had learned in such a short time.
      · 1 reply
    • jaxa

      RTX 3090 Super, RTX 3070 Ti 16 GB, RTX 2060 12 GB
      https://wccftech.com/nvidia-launching-rtx-3090-super-rtx-3070-ti-16gb-and-rtx-2060-12gb-by-january-2022/
      · 0 replies
    • duzenko

      CPU benchmark time - compiling DarkRadiant (2nd run)
      i5 8600K 6C/6T@4.4GHz DDR4 2x2133MHz 9MB cache
      Parallel builds: 1. 3:57 Parallel builds: 6 (default). 2:28 r5 1600AF 6C/12T@3.3GHz DDR4 1x2666MHz 16 MB cache, temp folder on HDD
      Parallel builds: 1. 5:05 Parallel builds: 4. 2:47 Parallel builds: 6. 2:55 Parallel builds: 12 (default). 2:57
      · 6 replies
    • nbohr1more

      Status updates are back so it is also a good time to return to contests!
      https://forums.thedarkmod.com/index.php?/topic/21095-christmas-connections-contest-2021
       
      · 0 replies
×
×
  • Create New...