Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: [40c] Partial printing works backwards on OS X  (Read 502 times)

Baughn

  • Noble Phantasm
  • The Haruhiist
  • Hiss
    • View Profile
[40c] Partial printing works backwards on OS X
« on: August 25, 2008, 05:02:36 pm »

I seem to have misplace my profiles, unfortunately. It's blatantly obvious if you run the opengl profiler (part of xcode) yourself, though - if you turn on partial printing, glColor3f is called a lot more. As in, thousands of times per tile. Without any other calls in between, which is just silly.

The upshot is that the main menu takes ~10% cpu use (at 20 gfps) with partial printing off, but - while it looks fine - it takes *25*% cpu use with it on. Not good. Also, I'm seeing 80-90% gpu usage, which is just plain silly, but I'm working on a wrapper for that. (Details in a few days, people, but I'd already like to request beta-testers that use (intel) macs. ;) )
Logged
C++ makes baby Cthulhu weep. Why settle for the lesser horror?

numerobis

  • Bay Watcher
    • View Profile
Re: [40c] Partial printing works backwards on OS X
« Reply #1 on: August 25, 2008, 05:46:38 pm »

I am on OSX but I don't see the bug you're mentioning: the title screen takes 50% off (which is awful) and 6% on (which is ok).  My FPS and GFPS are factory default, but as near as I can determine, those are ignored on OSX -- looking at the battle champs source, the framerate is there, but it doesn't do anything with it.
Logged

i2amroy

  • Bay Watcher
  • Cats, ruling the world one dwarf at a time
    • View Profile
Re: [40c] Partial printing works backwards on OS X
« Reply #2 on: August 25, 2008, 06:40:17 pm »

I don't see the bug either, I run OS X on my laptop and with partial printing on in the current version my game runs 2x-3x faster. It didn't work on my laptop in anything earlier than 40c, but it definitely works now.
Logged
Quote from: PTTG
It would be brutally difficult and probably won't work. In other words, it's absolutely dwarven!
Cataclysm: Dark Days Ahead - A fun zombie survival rougelike that I'm dev-ing for.

Baughn

  • Noble Phantasm
  • The Haruhiist
  • Hiss
    • View Profile
Re: [40c] Partial printing works backwards on OS X
« Reply #3 on: August 26, 2008, 03:53:56 am »

How amusing. A heisenbug. (Well, okay, not really, but..)

Out of curiosity, could you run DF with the opengl profiler on and post the statistics output? You'll need to run it attached to the profiler - you could run it *from* the profiler, but just attaching it is probably easiest, as then you won't have to set the CWD.

Anyhow, the profiler should be /Developer/Applications/Graphics Tools/OpenGl Profiler.app, assuming you have Xcode installed.
Logged
C++ makes baby Cthulhu weep. Why settle for the lesser horror?

numerobis

  • Bay Watcher
    • View Profile
Re: [40c] Partial printing works backwards on OS X
« Reply #4 on: August 26, 2008, 01:19:56 pm »

[ignore what I had said, I just don't know how to use this profiler]
« Last Edit: August 26, 2008, 01:29:19 pm by benoit.hudson »
Logged