Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 172 173 [174] 175 176 ... 329

Author Topic: Ironhand's Graphics Set (on Hiatus)  (Read 1233773 times)

Baughn

  • Noble Phantasm
  • The Haruhiist
  • Hiss
    • View Profile
Re: Ironhand's Graphics Set (0.48 released!)
« Reply #2595 on: August 23, 2010, 08:28:39 am »

I do, actually; it turns out that it's somewhere between inconvenient and impossible to do the calculations I want in the geometry shader. That's a pity, since it means that data going from the vertex to the fragment shader must be copied in the gometry shader.

It's still a win, though.
Logged
C++ makes baby Cthulhu weep. Why settle for the lesser horror?

Harmonica

  • Bay Watcher
    • View Profile
Re: Ironhand's Graphics Set (0.48 released!)
« Reply #2596 on: August 23, 2010, 12:32:14 pm »

I think I'll be okay since I limit the game to run at 20FPS anyway, because I'm weird like that (I like my dwarves to move around nice and slowly!).
Logged

WormSlayer

  • Bay Watcher
    • View Profile
    • WormSlayer.com
Re: Ironhand's Graphics Set (0.48 released!)
« Reply #2597 on: August 23, 2010, 06:51:06 pm »

Adding a geometry shader increases framerate by 50%, from 330 to 485, so I think I'm just going to do that by default. It's a win because it means the vertex shader gets run once per tile instead of six times in duplicate; that's using my very simple default vertex shader on an 8600GTM, which is pretty much the worst case for this geometry shader optimization. :P



(And the framerate is normally limited to 50. I don't think we're going to run into GPU speed issues anytime soon.)

Dont worry; it'll soon grind to a halt under my inept programming skills :D
Logged

ginsweater

  • Bay Watcher
    • View Profile
Re: Ironhand's Graphics Set (0.48 released!)
« Reply #2598 on: August 24, 2010, 02:40:03 am »

Adding a geometry shader increases framerate by 50%, from 330 to 485, so I think I'm just going to do that by default. It's a win because it means the vertex shader gets run once per tile instead of six times in duplicate; that's using my very simple default vertex shader on an 8600GTM, which is pretty much the worst case for this geometry shader optimization. :P

That's great news! And way higher than the static analysis tools I've been using have been suggesting framerate will be on that series. (I guess NVShaderPerf lies. I don't know why I'm surprised by this.)

I've now gotten my basic blend shader (don't know if it works, but it compiles!) down to the range of 30 instructions or so. Right now I'm doing blends purely in the fragment shader, which seems to mean doing 9 texture lookups, which is pretty expensive. (But of course too small for branches to help.) I think there should be a way to expand the tile edges and blend using the fixed-function hardware, but I haven't quite gotten the math down yet...
Logged

Baughn

  • Noble Phantasm
  • The Haruhiist
  • Hiss
    • View Profile
Re: Ironhand's Graphics Set (0.48 released!)
« Reply #2599 on: August 24, 2010, 04:46:32 am »

Well, NVShaderPerf probably doesn't realize that the screen buffer ("usamplerBuffer tile_array") usually fits in L1 cache. Though.. it shouldn't be *that* much of a difference. Oh well.
Logged
C++ makes baby Cthulhu weep. Why settle for the lesser horror?

oolon1

  • Bay Watcher
    • View Profile
Re: Ironhand's Graphics Set (0.48 released!)
« Reply #2600 on: August 24, 2010, 11:37:05 pm »

I'm.. continually amazed that people actually run DF on computers that old.

Don't you get really low framerates?

Considering clock speeds haven't increased in a few years, and DF really only uses one core, I'm not surprised.  I'm running a three year old E6750, but it's overclocked to 3.2 GHz.  I'm guessing it runs DF about as well as any i7 at the same clock speed.  40-50 fps with a full fort (assuming I don't get the dreaded spatter replication bug, which I try very hard to avoid).
Logged

qwert

  • Bay Watcher
    • View Profile
Re: Ironhand's Graphics Set (0.48 released!)
« Reply #2601 on: August 25, 2010, 12:03:18 am »

I'm.. continually amazed that people actually run DF on computers that old.

Don't you get really low framerates?

Considering clock speeds haven't increased in a few years, and DF really only uses one core, I'm not surprised.  I'm running a three year old E6750, but it's overclocked to 3.2 GHz.  I'm guessing it runs DF about as well as any i7 at the same clock speed.  40-50 fps with a full fort (assuming I don't get the dreaded spatter replication bug, which I try very hard to avoid).

Surprisingly, from the fps test thread, you can clearly see that while GHz does matter for similar chips, between architectures it means almost nothing. As an example, my i5 750 @ 2.56 GHz got 10-20 more fps than someone with your cpu running at 2.66, and I normally overclock it to 3.8.
Logged

riffraffselbow

  • Bay Watcher
    • View Profile
Re: Ironhand's Graphics Set (0.48 released!)
« Reply #2602 on: August 25, 2010, 04:26:49 am »

I'm.. continually amazed that people actually run DF on computers that old.

Don't you get really low framerates?

Considering clock speeds haven't increased in a few years, and DF really only uses one core, I'm not surprised.  I'm running a three year old E6750, but it's overclocked to 3.2 GHz.  I'm guessing it runs DF about as well as any i7 at the same clock speed.  40-50 fps with a full fort (assuming I don't get the dreaded spatter replication bug, which I try very hard to avoid).

Surprisingly, from the fps test thread, you can clearly see that while GHz does matter for similar chips, between architectures it means almost nothing. As an example, my i5 750 @ 2.56 GHz got 10-20 more fps than someone with your cpu running at 2.66, and I normally overclock it to 3.8.
Just look at the P4's. The general consensus is that the architecture was designed around getting large numbers for Ghz, no matter the actual performance.
Logged
"And God saw that the world was too moist, and that none of the Scorpion race could be placed upon it; and so he started over."

blub-dwarf

  • Bay Watcher
    • View Profile
Re: Ironhand's Graphics Set (0.48 released!)
« Reply #2603 on: August 25, 2010, 03:48:39 pm »

hey one easy question :)

is it posible to shrink your mod to 9x9 or 11x11 ? do i need to shrink every single dwarf or can i just shirnk the hole picture?

i saw a realy nice 9x9 mod but with too little grafiks so i thought i could shrink yours to see more on my little lcd
Logged

krenshala

  • Bay Watcher
    • View Profile
Re: Ironhand's Graphics Set (0.48 released!)
« Reply #2604 on: August 25, 2010, 06:24:57 pm »

I converted the Phoebus set to use the Terminus tileset and noticed that the dwarves and animals were the normal 16x16, but being rendered in 11x11, so you should be able to do the same with this one.  I'm not sure if there is any extra workload caused by rendering the images this way over ones that are at the correct 11x11 to match the rest of the tiles, however.
Logged
Quote from: Haspen
Quote from: phoenixuk
Zepave Dawnhogs the Butterfly of Vales the Marsh Titan ... was taken out by a single novice axedwarf and his pet war kitten. Long Live Domas Etasastesh Adilloram, slayer of the snow butterfly!
Doesn't quite have the ring of heroics to it...
Mother: "...and after the evil snow butterfly was defeated, Domas and his kitten lived happily ever after!"
Kids: "Yaaaay!"

Ironhand

  • Bay Watcher
  • the llama is laughing
    • View Profile
Re: Ironhand's Graphics Set (0.48 released!)
« Reply #2605 on: August 25, 2010, 06:49:18 pm »

With Baughn's stuff, you can just scroll your mouse wheel and it'll shrink and grow the tiles.
Or if you make the window smaller, it'll shrink them so that 80 tiles can always fit horizontally.
Logged

Baughn

  • Noble Phantasm
  • The Haruhiist
  • Hiss
    • View Profile
Re: Ironhand's Graphics Set (0.48 released!)
« Reply #2606 on: August 26, 2010, 06:47:28 am »

Right, but keep in mind that you only get proper resizing in 2D mode at the moment. That is no longer the case for my development code, however, so in one or two releases it won't be an issue.
Logged
C++ makes baby Cthulhu weep. Why settle for the lesser horror?

Sean Mirrsen

  • Bay Watcher
  • Bearer of the Psionic Flame
    • View Profile
Re: Ironhand's Graphics Set (0.48 released!)
« Reply #2607 on: August 26, 2010, 07:17:05 am »

I've just thought of something. This doesn't relate to the 'set per se, but you seem to be more active here, Baughn. Do the separated text fonts mean that we can actually start to... translate Dwarf Fortress? It'd be a very mangled translation, sure, especially for the Russian language that I'm thinking of, but would it actually work? As in, would DF understand and properly render cyrillic fonts?
Logged
Multiworld Madness Archive:
Game One, Discontinued at World 3.
Game Two, Discontinued at World 1.

"Europe has to grow out of the mindset that Europe's problems are the world's problems, but the world's problems are not Europe's problems."
- Subrahmanyam Jaishankar, Minister of External Affairs, India

Baughn

  • Noble Phantasm
  • The Haruhiist
  • Hiss
    • View Profile
Re: Ironhand's Graphics Set (0.48 released!)
« Reply #2608 on: August 26, 2010, 08:50:55 am »

..I can't believe I'm saying this.

Yes, it's theoretically possible with what we've got now, or are about to get, at least.

Given the generated text, though.. it would *not* look good. You'd probably be better off passing those bits through babelfish in realtime.
Logged
C++ makes baby Cthulhu weep. Why settle for the lesser horror?

Carpman

  • Bay Watcher
  • need not work.
    • View Profile
Re: Ironhand's Graphics Set (0.48 released!)
« Reply #2609 on: August 26, 2010, 04:46:48 pm »

Thats weird, for some reason this messes up my worldgens (for example, if I take world parameters from the internet and try to generate them, it comes out different than it should).

Is there a way to fix this? Is it a problem on my end?

Sorry if I was unclear about this, and thanks in advance.
Logged
Pages: 1 ... 172 173 [174] 175 176 ... 329