Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Poll

How does 40d16 compare to 40d?

Higher speed, no problems
Higher speed, problems
Same speed, no problems
Same speed, problems
Lower speed, no problems
Lower speed, problems

Pages: 1 ... 41 42 [43] 44 45 ... 64

Author Topic: FotF: Dwarf Fortress 40d16  (Read 270232 times)

Vince

  • Bay Watcher
    • View Profile
Re: FotF: Dwarf Fortress 40d16
« Reply #630 on: October 22, 2009, 11:12:34 am »

Activated VBO crashes DF for me.
When I deactivate the extension limit in the NVidia driver, DF shows a black screen and does nothing.
Driver Version 186.18,
GeForce 8800M GTS

VBOs work on my laptop, in general (they are used in a current project at the university)

It seems it has to do with some extensions. Maybe they are too old or too new?
Which do you use?
Logged

Footkerchief

  • Bay Watcher
  • The Juffo-Wup is strong in this place.
    • View Profile
Re: FotF: Dwarf Fortress 40d16
« Reply #631 on: October 22, 2009, 03:11:45 pm »

Logged

steff

  • Bay Watcher
    • View Profile
Re: FotF: Dwarf Fortress 40d16
« Reply #632 on: October 22, 2009, 03:35:21 pm »

Ta chap!

FWIW, the same crash hasn't yet occurred in Jaunty 32-bit running in Virtualbox 3.0 on the same machine. It's slow though. So slooooow.
Logged

Baughn

  • Noble Phantasm
  • The Haruhiist
  • Hiss
    • View Profile
Re: FotF: Dwarf Fortress 40d16
« Reply #633 on: October 22, 2009, 03:54:14 pm »

The backtrace is failing because the stack has already been clobbered by the time gdb catches the crash. For better results, run under valgrind.

The crash appears to be in strcat, but that means relatively little without knowing *which* use of strcat. Please, try valgrind?

Also, there's exactly one use of strcat in the graphics code, in the code for graphical tilesets. Which is not to say that other library code doesn't call it; I'd need a backtrace for that. Still, try turning graphical tiles off, see if it matters? Or tell me if they're already off?
Logged
C++ makes baby Cthulhu weep. Why settle for the lesser horror?

steff

  • Bay Watcher
    • View Profile
Re: FotF: Dwarf Fortress 40d16
« Reply #634 on: October 22, 2009, 04:15:49 pm »

Righto, valgrind it is. I can live with teh sl0w, since the alternative is Virtualbox which is currently giving me 2FPS anyway. Graphical tiles aren't installed - this is a brand new untar of the distributed version with nothing added.
Logged

steff

  • Bay Watcher
    • View Profile
Re: FotF: Dwarf Fortress 40d16
« Reply #635 on: October 23, 2009, 04:51:35 am »

Left it overnight, since it gets essentially 0 FPS with valgrind running :-)

Select dwarf from 'u' menu, hit v, then Enter. BOOM!

Valgrind output is at http://pastebin.com/fdfda31f
Logged

Vince

  • Bay Watcher
    • View Profile
Re: FotF: Dwarf Fortress 40d16
« Reply #636 on: October 23, 2009, 09:32:26 am »

I intercepted the OpenGL errors in VBO mode and found this:

GL ERROR - Function glMapBufferARB generated error GL_OUT_OF_MEMORY
GL ERROR - Function glMapBufferARB generated error GL_OUT_OF_MEMORY
GL ERROR - Function glMapBufferARB generated error GL_OUT_OF_MEMORY
GL ERROR - Function glUnmapBufferARB generated error GL_INVALID_OPERATION
GL ERROR - Function glUnmapBufferARB generated error GL_INVALID_OPERATION
GL ERROR - Function glUnmapBufferARB generated error GL_INVALID_OPERATION

I guess this is the symptom - but what would be the cause?
I have more than enough physical memory I guess - both system RAM (3GB) and graphic RAM (512 MB).

EDIT:
I ran the gDEBugger over it, it came with this:
VBO: http://www.file-upload.net/download-1964791/Context2-OpenGLCallsLog.html.html
STANDARD: http://www.file-upload.net/download-1964792/Context2-OpenGLCallsLog.html.html
It seems it binds textures until the memory is full.
I don't have the code, so I don't exactly know if I am correct at all, but it's my best guess.

EDIT2: the GLError OpenGL Error: glMapBufferARB - GL_OUT_OF_MEMORY occurs three times during three callings of
glMapBufferARB(GL_ARRAY_BUFFER, GL_WRITE_ONLY)
After than the unmap function fails three times, of course.
(EDIT 4: Oh, that's the same I wrote above :D)
Then it crashes.
« Last Edit: October 23, 2009, 02:19:16 pm by Vince »
Logged

Baughn

  • Noble Phantasm
  • The Haruhiist
  • Hiss
    • View Profile
Re: FotF: Dwarf Fortress 40d16
« Reply #637 on: October 23, 2009, 02:38:58 pm »

steff: That's a DF bug. Report it on the bug forum, to Toady; preferably so he can replicate it.

Vince:
It wouldn't be the total memory use that's a problem, just the way it's being used. It's odd, though. The game explicitly checks whether those work, and switches from VBO to standard if they don't; if you get those errors, your drivers are lying in a bad way.

What gpu is that?

Anyhow.. glMapBufferARB is meant to map GPU memory directly into the application's address space. It reduces the number of copies required, thus slightly increasing speed. Unfortunately.. well, you saw; it's not too well supported.
Logged
C++ makes baby Cthulhu weep. Why settle for the lesser horror?

Vince

  • Bay Watcher
    • View Profile
Re: FotF: Dwarf Fortress 40d16
« Reply #638 on: October 23, 2009, 02:46:07 pm »

Vince:
It wouldn't be the total memory use that's a problem, just the way it's being used. It's odd, though. The game explicitly checks whether those work, and switches from VBO to standard if they don't; if you get those errors, your drivers are lying in a bad way.
Newest NVidia, 186.18
What gpu is that?
GeForce 8800M GTS
I'll try it with my other pc... Let's see...
GeForce 7600 GT crashes, too. The driver is a bit older, by the way (had no chance to check it, it is occupied right now :D)
Anyhow.. glMapBufferARB is meant to map GPU memory directly into the application's address space. It reduces the number of copies required, thus slightly increasing speed. Unfortunately.. well, you saw; it's not too well supported.
I know, and they can be a pain to implement, too. :D (I had a dependency hell with those extensions...)
« Last Edit: October 23, 2009, 03:19:42 pm by Vince »
Logged

steff

  • Bay Watcher
    • View Profile
Re: FotF: Dwarf Fortress 40d16
« Reply #639 on: October 23, 2009, 04:39:09 pm »

steff: That's a DF bug. Report it on the bug forum, to Toady; preferably so he can replicate it.


Duly added to my original bug report thread. Ta!
Logged

droid

  • Escaped Lunatic
    • View Profile
Re: FotF: Dwarf Fortress 40d16
« Reply #640 on: October 26, 2009, 12:40:07 pm »

When the adjustable grid was introduced (40d I think), I tweaked it to find the optimal size for my screen. But I haven't found out how to get things the way I want them with the new system.

I would like to use:
[FULLGRID:84:50]
and have as the default
[FULLGRID:0:0]
which would mean autofind the grid like it does in 40d16.

Logged

Footkerchief

  • Bay Watcher
  • The Juffo-Wup is strong in this place.
    • View Profile
Re: FotF: Dwarf Fortress 40d16
« Reply #641 on: October 26, 2009, 12:43:34 pm »

^^^ Set your desired resolution in the 40d16 init.txt, and it'll figure out what grid size to start with (40d16 doesn't have a notion of a set grid size).  You can also expand the window by dragging its corners, like any other window, or you can hit the "Maximize" button in the upper right.
« Last Edit: October 26, 2009, 12:47:01 pm by Footkerchief »
Logged

Wraith

  • Escaped Lunatic
    • View Profile
Re: FotF: Dwarf Fortress 40d16
« Reply #642 on: October 26, 2009, 04:40:02 pm »

Newest NVidia, 186.18
Isn't NVidia up to around 191.xx for that card?
« Last Edit: October 26, 2009, 04:43:32 pm by Wraith »
Logged

Vince

  • Bay Watcher
    • View Profile
Re: FotF: Dwarf Fortress 40d16
« Reply #643 on: October 26, 2009, 04:55:49 pm »

Newest NVidia, 186.18
Isn't NVidia up to around 191.xx for that card?

GeForce 8800M GTS is a laptop card. :D
(And I went through the hassle modifying the inf and installing the 191.xx, but a) it didn't work either and b) the NVidia control panel doesn't install in that case)
Logged

Baughn

  • Noble Phantasm
  • The Haruhiist
  • Hiss
    • View Profile
Re: FotF: Dwarf Fortress 40d16
« Reply #644 on: October 26, 2009, 05:33:36 pm »

Something funny is going on there.

I've got an 8600GT myself - another laptop card - and if VBOs work here, they should definitely work for you.

Of course, I'm using linux.
What's actually failing is mapping the gpu memory into the application's address space, so maybe it's due to insufficient address space?

In that case, a 64-bit OS (like mine) would never see any problems, while a 32-bit one would be in trouble depending variously on driver specifications and total installed memory - in this case, less memory would be better.

How much memory did you say you have? Could you try pulling one of the chips, see what happens?
Logged
C++ makes baby Cthulhu weep. Why settle for the lesser horror?
Pages: 1 ... 41 42 [43] 44 45 ... 64