VOGONS


The Changeling 3dfx Voodoo 5 5500

Topic actions

Reply 180 of 191, by Dolenc

User metadata
Rank Member
Rank
Member

Got a bit of attention.

I has some issues resolved, some crashes on some games upon start or exit, s3tc didnt support all formats, so compressed textures didnt work in Soldier of fortune. Lod_dithering and trilinear added to texture filtering, tried it on compressed textures too, but it resulted in corrupted blends. In general I have to say compressed textures look much worse than they did on mesa, future me problems, if Im not remembering incorrectly.

The attachment glide_20261106_185650.jpg is no longer available

One bug with Heretic 2, when you jumped into water and move the camera a bit. Water texture started flickering between opaque and transparent.
And another interesting issue was with missing fog, or different color?? Or what underwater.

How it looked on mesaFx

The attachment glide_20261106_214910_MesaFX.jpg is no longer available

And how on the 3dfx icd.

The attachment glide_20261106_214941_ICD.jpg is no longer available

Now what!!??!?.... well nothing was wrong, I just had Trilinear enabled, that disables multitexturing, and that how the game adapts to multi-pass rendering. Fog breaks a separate multiply-blended lightmap pass, because the lightmaps would get fogged a second time, so it leaves lightmaps out....

Reply 181 of 191, by Dolenc

User metadata
Rank Member
Rank
Member

Found why(I think!) compressed textures looked better on MesaFx than on the ICD. ICD first decoded s3tc to rgba, then encoded to 3dfx format FXT1. Now changed, to how mesafx does it, they get directly mapped from s3tc -> fxt1 and then uploaded to the card. And since in 2018 s3 pattent for compression expired and their code can be used directly, I added the code directly in the icd, so no need for external dxtn.dll library. Looks the same now as on mesa (it was mostly visible on 2d menu elements, icons had very jagged edges) and runs great.

Then, MesaFx was a bit faster in Soldier of fortune, icd did 76fps, mesa did 80fps. Explanation is a bit over my paygrade "Polygon offset no longer writes the chip's depth-bias register (zaColor) per triangle. Immediate-mode GL_TRIANGLE_STRIP / FAN / POLYGON are sent as hardware strips and fans (hwFifoStripTri), and zero-area triangles are dropped in the generated cull tests.". Took a while to find and now it does 81fps on the ICD.
In the process of doing this, and arguing with the LLM (what has my life become....) that this can be impoved... Llm added some nice stats tracking to glide. So now I can run both icd-s and then compare what one is doing better than the other.

Then another was Hexen 2 (og not source port). Icd did around 80fps and mesa did around 90fps. The main bump was GL_EXT_paletted_texture and GL_EXT_shared_texture_palette were not advertised for games, unless they used napalm texture formats. Now they are. And the game was constantly re-downloading textures once the texture heap was full. Now the texture allocator no longer evicts the textures, after its rover whether used or not. It takes the first free block that fits, else evicts the least recently used run of blocks. Which gave another 2fps, and very minor bump in Q3 engine games too.

Then lots of glide context states fixups, that now enables Quakespasm to work, even with weird SDL behavior, like requesting the window to be closed, even when the game and glide context are already closed...
And while I was doing quakespasm, here also MesaFx was faster, did 108fps and Icd did 104fps. Disabling 2 pixel per clock optimization, makes the fps even for both. Whats happening still dont know... Edit: now I do... Untextured drawing now uses 2PPC on Voodoo4/5. With no texture enabled the color was passed through both TMUs, so Glide never enabled 2 pixels per clock for it. Quakespasm 104 -> 112 fps (MesaFX 108).

Anyway what Im saying, cleanup is going good. Its nice to have 2 examples of ICD and then compare. And make the best out of both worlds.
Heres a random image of Quakespasm, where I was trying to figure out what is happening with the buffer clearing when you move the camera looking at the water, and the colums were having this delayed clear effect 😀.

The attachment spasm0000.png is no longer available

Reply 182 of 191, by Dolenc

User metadata
Rank Member
Rank
Member

Did what I could/llm found with the code fixes. So last thing is compatibility. Adding further OpenGL support, still debating how this would look like, either implement only what can run on hardware, add unsupported with a software/cpu fallback, or just fake it, report the support, but not do it, which would result in missing visuals. Ill see how it goes, what the games want and where the problems are. I dont want random games running slower that what they currently are and it could happen that they take a slower path if you report that its supported, but its not done in hardware.

So as far as I found online, the games where the ICD lacks compatibility is
- Neverwinter nights
- Jedi outcast 2 and academy??
- wolf enemy territory
- Serious sam 1,2 (or limited missing visuals??)
- Homeworld
- medal of honor
- cod1
- Doom 3

Ill take a peak at all but Doom3, Mesafx can stay for that.

So Ive added some more opengl v1.2 extensions and a toggle to select which version the driver reports.
And tried Neverwinter nights. It needed a small fix, not higher gl support. Now it seems to run ok in 32bit mode. And in 16bit everything beaks since it wants stencil for shadows and depth testing also falls apart so you get some random character/items flickering, which Im not solving, but Ill see what can be done in 32bit mode. Looks fine. The game itself need desktop resolution matched to what will be used in game or sometimes it crashes, also mouse has to be set in software mode in the games .ini or its invisible. Fps is meh, testing in 1680x720, but it runs now 😀

The attachment IMG_20261120_132118.jpg is no longer available

Reply 183 of 191, by Dolenc

User metadata
Rank Member
Rank
Member

So up to OpenGL 1.5 is in.

I needed some way to test the implementation, if someone is interested, Ive attached a quick OpenGL tester that was used.

The attachment gltest_09.jpg is no longer available

Jedi academy

The attachment glide_20261123_011041.jpg is no longer available

Reply 184 of 191, by mwdmeyer

User metadata
Rank Oldbie
Rank
Oldbie

Awesome work!

Vogons Wiki - http://vogonswiki.com

Reply 185 of 191, by Dolenc

User metadata
Rank Member
Rank
Member

Well if you advertise cube map and dot3 bump map support, it runs doom 3 too.... Not even that terible 😀

Reply 186 of 191, by Dolenc

User metadata
Rank Member
Rank
Member

Serious Sam, lens flares would flicker and flares/glows would show over the wall.
Depth testing needed a small fix. Think this game has some more issues, see some weird colors on some textures in the distance. But overall, it plays. The flares were just anoying.

The attachment glide_20261124_130015.jpg is no longer available

Think this is it. Found some minor stuff in glide also, now additions locked.
Gonna take some time to test it a bit more, but I think its done!

Reply 187 of 191, by Dolenc

User metadata
Rank Member
Rank
Member

This was the list that was made during recompile, to track found code problem in the original ICD. If anybody finds it interesting. Its not completely up-to-date and lots of text, since LLM writes it.

Known incorrectness found during reverse engineering:
(bugs of the original 3dfxOGL.dll 1.0.0.0761; the rebuild keeps them as they are unless marked FIXED)

Update: This post was way too long, but I do want notes somewhere. So now they are in a file

Last edited by Dolenc on 2026-11-26, 20:17. Edited 1 time in total.

Reply 188 of 191, by Dolenc

User metadata
Rank Member
Rank
Member

And this is how OpenGL support was extended.

OpenGL versions above 1.1 -- plan and state

Update: This post was way too long, but I do want notes somewhere. So now they are in a file

Last edited by Dolenc on 2026-11-26, 20:17. Edited 2 times in total.

Reply 190 of 191, by Dolenc

User metadata
Rank Member
Rank
Member

3dfx Wide driver v1.6

The attachment IMG_20261126_192540.jpg is no longer available

Voodoo4/5 Wide Driver
Version 1.6

**************************************************************************************************************************************
Voodoo Series Driver Kit: 1.0
Voodoo Series Win9x 2D/3D Display Drivers: 4.13.01.0028
Glide 2.X Driver: 1.00.01.0107 (glide2->glide3 wrapper)
Glide 3.X Driver: 3.10.00.40409 (Glide sourceForge project)
OpenGL Driver Version: 3dfx OpenGL RE-ICD (v1.0.0.0762)
**************************************************************************************************************************************

Release Notes
=======================================================================
Version 1.6
- Removed 120hz refresh from 1960x840
- Removed the 120hz limit from 3DFX16VS.DRV, so now 144hz can be set if the monitor supports it.
- Fixed taskbar icons not visible (and other artifacts on desktop) when returning to the desktop from a game, and using higher than 2048x width resolution (ex 2560x1080) at 32bit, fix in 3dfx16vs.drv
- Fixed 3/4 image smearing in glide, when using higher than 2048x width resolution (ex 2560x1080) at 32bit
- Diablo 2 further widescreen patch fixes
- Diablo and Battlezone widescreen patch in WidescreenPatches
- New OpenGL RE-ICD, with all the fixes and upgrades I could find and solve.
- OpenGL s3tc/dxtn compressed textures now implement the required code in the ICD, not using dxtn.dll anymore.

Whats new?
This version contains the rest of Diablo 2 widescreen fixes, that wasnt it 1.5. And a few fixes, mainly going to higher desktop resolutions, that was a bother for me since I have it set as 2560x1080.
And the main thing being the new OpenGL ICD, based on the last 3dfx v1.0.0.0761, with much fixes and improvements. And in case you want MesaFx its under the Extra folder.

Basicly everything that was enabled with MesaFx is now also here, all the color depth toggles, trilinear filtering and now you can now change the OpenGL api version in the control panel(default is now OpenGL v1.2).

The attachment Driver4.jpg is no longer available

Doom 3 will also work. Set OpenGL to v1.5 and set an environment variable set FX_GL_FAKE_EXTENSIONS=1 for the game to run. I played it a little and it crashed after the demons start spawning.

You can get the driver here
3dfx Wide driver v1.6

Github Links
3dfx_Wide_driver_98
MesaFx-7.4.4
3dfx_opengl_icd
Glide sourceforge
GlideXp glide2->glide3 wrapper

Reply 191 of 191, by Dolenc

User metadata
Rank Member
Rank
Member

Benchmarks

So since I moved away from Win10 to Ubuntu and dont have excel/powerpivot for charts, I expected to be in pain 😁. But no, I just opened my old file, put the new data in and everything refreshed, so here are the charts.

All done with a fresh install (have an image prepared).
All games prepared before, same settings. Same as on page 7.

Resolution for all 1280x960. Refresh rate set at 60hz for all.
Left all settings as they come, except for vsync.

PART1
16bit

The attachment DriverBench_Part1_16bit.png is no longer available

32bit

The attachment DriverBench_Part1_32bit.png is no longer available

MDK2
Finally some movement, minimal but this game wouldnt budge. Ill take that 2fps!

Quake 1 - QuakeSpasm 0.85.9
This game doesnt work on the 3dfx ICD. It now does. Was slower that MesaFx at first, but with some tweaks is now faster. Did 108fps and Icd did 104fps at first when I got the game to work.
The result for MesaFx in 32bit is probably the game running with 16bit colors and 32bit textures. Guess the force color switch doesnt work here with mesa.
And the re-icd does it correctly now.

Quake 2
What I did for sof and quakespasm added about 4fps here.

Quake 3
Also a small nudge here. Very minimal, it jumped 0.5fps when all the tweaking was done. And a bit more in 32bit.

When running the game with compressed textures (32bit) the results are
3dfx icd: 54.5fps
MesaFx: 54.8fps
re-icd: 58.0fps

Sin
Here the icd was always faster than MesaFx, now its just a little more faster! Texture setting that I test is "auto", it mixes a bit of 16bit and some paletted. If you set them to 16bit which in theory gives nicer textures it runs at 91fps in 16bit. This path is really optimized on the icd.

PART2
16bit

The attachment DriverBench_Part2_16bit.png is no longer available

32bit

The attachment DriverBench_Part2_32bit.png is no longer available

Soldier of fortune
First, I made an opsie previous time benching this. 3dfx icd did not support s3tc textures, which I had set for testing, and it fallbacks to default. I didn't notice it back then. Now all 3 were tested with default texture setting.
MesaFx was fairly faster here from the start 76.6fps vs 79.5fps. After about a week finding out why, now the icd is faster by about 2fps and even more with s3tc. Starting with texture compression, when I added the missing formats, it look terible, mostly on 2d elements in the menu, very rough edges. Then I changed converting to directly mapping to fxt1 and added s3 code directly in the icd. Now it looks great, you cant notice you are running compressed textures (except for the menu cursor, that doesnt have the red center anymore 😀 ) and it gains additional 2.5fps.

Half-life
Nothing really changed here, except that now it can actually run at 32bit colors with the icd.

HL: Opposing force (demo)
Same

Heretic 2
Nothing new. Except one bug fixed along the way.

Hexen 2
Here initially icd was very slow compared to MesaFx. Did 82fps now does 96fps.
For this game, better alternative is to play the source-port. But for me/testing is good since its vanilla q1 engine.

Conclusion time!

Its fast, I hope compatibility is good, I cant test every game, should be even better than before in the original last 3dfx driver.
I decided to default it to OpenGL v1.2 featureset since it supports most of it in hardware and doesnt make the extension string too long.
But you can toggle that to a higher version in youu have some issues with "new-er" games.

Anyway Im happy with it. Its not a major change to MesaFx when it comes to performance, but a few fps here and there. And "I hope" correctness from 3dfx side and my additional fixes (there were lots).
If something really weird doesnt show up in my playtime - I think this is it for me with the driver work, Im done 😀.
(Ill do some widescreen glide patches if I want to play some more games that wont support it).