Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: WTF is wrong with the display?!  (Read 880 times)

MoonyTheHuman

  • Bay Watcher
  • I think the DEC VAX hates me.
    • View Profile
    • hellomouse
WTF is wrong with the display?!
« on: January 26, 2016, 07:17:10 pm »

Spoiler (click to show/hide)
explain? ._.

NJW2000

  • Bay Watcher
  • You know me. What do I know?
    • View Profile
Re: WTF is wrong with the display?!
« Reply #1 on: January 26, 2016, 07:22:26 pm »

That'll be the 3D shader being tested, but don't tell anyone else, Toady's trying to keep the details a secret.
Logged
One wheel short of a wagon

MoonyTheHuman

  • Bay Watcher
  • I think the DEC VAX hates me.
    • View Profile
    • hellomouse
Re: WTF is wrong with the display?!
« Reply #2 on: January 26, 2016, 07:24:08 pm »

That'll be the 3D shader being tested, but don't tell anyone else, Toady's trying to keep the details a secret.
well it just failed miserably on me, and now im tempted to decomp
EDIT: threading is more important tho, why not it first?
« Last Edit: January 26, 2016, 07:25:44 pm by MoonyTheHuman »
Logged

SimRobert2001

  • Bay Watcher
    • View Profile
Re: WTF is wrong with the display?!
« Reply #3 on: January 26, 2016, 07:37:18 pm »

That'll be the 3D shader being tested, but don't tell anyone else, Toady's trying to keep the details a secret.
well it just failed miserably on me, and now im tempted to decomp
EDIT: threading is more important tho, why not it first?

Because threading is INSANELY difficult to do, even when you plan for it from the get go.
Logged

Urlance Woolsbane

  • Bay Watcher
    • View Profile
Re: WTF is wrong with the display?!
« Reply #4 on: January 26, 2016, 07:45:38 pm »

That'll be the 3D shader being tested, but don't tell anyone else, Toady's trying to keep the details a secret.
well it just failed miserably on me, and now im tempted to decomp
EDIT: threading is more important tho, why not it first?
I believe that NJW2000 was joking. :P

I suspect that graphics-glitch has little in particular to do with DF, but then, this is the game that has caused a computer display to turn into fractals, so what do I know?
Logged
"Hey papa, your dandruff is melting my skin. Is that normal?"
"SKREEEONK!!!"
"Yes, daddy."

FrisianDude

  • Bay Watcher
    • View Profile
Re: WTF is wrong with the display?!
« Reply #5 on: January 27, 2016, 03:14:37 am »

THAT is a more Dorfy bug than the horsecrap in your signature :P
Logged
A tiny, foul-tempered humanoid creature that dwells in the evil mountains. They are known to enjoy drinking liquor and will take any unguarded supplies of booze.

soulsource

  • Bay Watcher
    • View Profile
Re: WTF is wrong with the display?!
« Reply #6 on: January 27, 2016, 03:47:27 am »

Because threading is INSANELY difficult to do, even when you plan for it from the get go.
I agree that threading in general is hard, but there are some special cases where it's rather easy, for instance loops where each iteration is independent. In such cases, one can even let the compiler generate the actual threading code by using OpenMP...
As I (of course) have no idea of the dwarf fortress source, I cannot tell where such loops exist in the game, and if they have any noticeable impact on performance. Some things where I could imagine that OpenMP might help would be wear checks for clothing, crop growth, and depending on how they are implemented maybe also path finding, liquid flow, and temperature calculations.
That being said, OpenMP is not some magical does-it-all-for-you, but it greatly simplifies the task. One still needs to manually find and mark the code parts that one expects to parallelize well, and then one still has to test the effects. It can very well happen that the added overhead from OpenMP has a worse performance impact than just running a certain loop non-parallelized.

But back on topic:
The graphics glitches are strange. I'd say something is wrong with your GPU driver (or the GPU itself, but let's hope that's not the case)... If you are already running the latest GPU driver version, you can still try to change PRINT_MODE. The default setting of 2D should work rather fine on most systems and likely gives the best performance, but maybe in your case STANDARD might work better. If that also doesn't, you can try to go to a 3D graphics mode - VBO or SHADER (which seems to be now supported by the official dwarf fortress releases) come to mind...
Logged
Quote from: Porkins Windu
Really, DF and Metal are practically the same. Drunkenness, Death, Depression, Depravity, Despondence, Demons, Dementia, Darkness. And thats just the D's!