[REL] Dummy D3D DLL's that draws nothing in 3D mode
-
Brought to you by Falcon Online!
Doesn’t require a graphics card in the server! Can be run on any trashy PC.
If running without sound card, recommend renaming particlesys.ini in Data/Terrdata so it’s not used.
Thanks to Khronik for testing!
http://ananke.laggy.pk/falcon-bms-dummy-d3d/
REMEMBER TO TURN OFF ALL SHADERS AND TRIPLE BUFFERING!
Unzip to Falcon BMS 4.32/Bin/x86
No warranty whatsoever, but I’ll try to respond to issues.
Useful stuffies:
Environment variable WINEDEBUG, set to -all in order to have better performance.
http://ananke.laggygamerz.com/falcon/bms-debug-exe-subsystem-console-432u4.7z - bms exe with subsystem switched to console. Very useful for debugging crashes and other misbehavior.
Also see: http://www.mesa3d.org/envvars.htmlSource code: https://github.com/sthalik/wine-hacks/tree/wined3d-null and http://cgit.freedesktop.org/mesa/mesa/
Technical details: http://wiki.winehq.org/WineD3DOnWindows
-
Could you please be a bit more specific what this actually does? I have an idea and am quite sure you spent a lot of time doing this. Would you like to provide a link to svn or git repo?
-
https://github.com/sthalik/wine-hacks/tree/wined3d-null
This is for dedicated windows servers.
Instructions taken from:
http://wiki.winehq.org/WineD3DOnWindows
Contrary to what people think, it’s easy, just dummy out drawprim.c.
Forthcoming is mesa-swrast.
-
That’s the true programers spirit Thank you for sharing your repo, very much appreciated. Last merge two ours ago!?
Glancing at the sources those guys did an awesome job and i can totally understand that youre happy now to have such a ‘simple’ solution. Will test it soon. -
Does it mean: … you can run BMS on a server non equipped with a D3D video card !!!
-
AFAIK: yes!
-
FWIW you can ‘git diff upstream/master’ to see what I did. Changes are minimal. Building mesa-swrast now.
Does it mean: … you can run BMS on a server non equipped with a D3D video card !!!
Consider yourself late to the party
-
Maybe the best news of this year!!!
-
-
Not yet, not without swrast Unless you do have opengl acceleration in place.
Almost done, building on VM due to Mesa not able to xc from Linux. POS…
-
Dear dear… Mesa requires scons build for Windows… In release mode it’s a major pain due to LTO enabled. When it finally links, I’ll upload and update first post.
-
OK it finally built. Any volunteers for test? Check first post.
-
Testing now!!
-
AND?
-
My toolchain is faulty. Need to rebuild MinGW32, with MinGW-w64 there’s some bug with TLS support and that’s why it crashes so badly on startup in CRT.
Know that the Linux version took 10 minutes, Windows version took yesterday, whole night, and then some. It’s 11am.
-
I am not an expert so I dont quite understand what is this about…does this increase FPS?
-
If someone has Mesa 9.1 + LLVM binaries I’d be much obliged.
-
I am not an expert so I dont quite understand what is this about…does this increase FPS?
No m8 this is a try to make the 3d view not to be displayed.
Why?
For Servers mostly.
Most cheap Servers for Hosting are virtual ones but they don’t have powerful VGA so they end up to 1-2 FPS in 3d, so they are a nogo for playing the role of Falcon Server. On the other hand having the Falcon server in 2D causes synch problems and there is no indication by the dev’s that this will change any soon.So with this approach they try to say to the DX engine not to display what has to be calculated for GFX.
I believe this can be done easier by the code it’s self in a tricky hack way then this approach but using the same logic…
But let’s see what miracles those guys can work out…
-
and there is no indication by the dev’s that this will change any soon.
AFAIK … no change.
-
It works except that Mesa doesn’t wanna display anything even with unmodded d3d -> opengl translation.
Crash bugs are gone (thanks Khronik for testing). I’m making an opengl32.dll for truly headless servers, with everything but displaying pixels emulated