• Announcements

    • khawk

      Download the Game Design and Indie Game Marketing Freebook   07/19/17

      GameDev.net and CRC Press have teamed up to bring a free ebook of content curated from top titles published by CRC Press. The freebook, Practices of Game Design & Indie Game Marketing, includes chapters from The Art of Game Design: A Book of Lenses, A Practical Guide to Indie Game Marketing, and An Architectural Approach to Level Design. The GameDev.net FreeBook is relevant to game designers, developers, and those interested in learning more about the challenges in game development. We know game development can be a tough discipline and business, so we picked several chapters from CRC Press titles that we thought would be of interest to you, the GameDev.net audience, in your journey to design, develop, and market your next game. The free ebook is available through CRC Press by clicking here. The Curated Books The Art of Game Design: A Book of Lenses, Second Edition, by Jesse Schell Presents 100+ sets of questions, or different lenses, for viewing a game’s design, encompassing diverse fields such as psychology, architecture, music, film, software engineering, theme park design, mathematics, anthropology, and more. Written by one of the world's top game designers, this book describes the deepest and most fundamental principles of game design, demonstrating how tactics used in board, card, and athletic games also work in video games. It provides practical instruction on creating world-class games that will be played again and again. View it here. A Practical Guide to Indie Game Marketing, by Joel Dreskin Marketing is an essential but too frequently overlooked or minimized component of the release plan for indie games. A Practical Guide to Indie Game Marketing provides you with the tools needed to build visibility and sell your indie games. With special focus on those developers with small budgets and limited staff and resources, this book is packed with tangible recommendations and techniques that you can put to use immediately. As a seasoned professional of the indie game arena, author Joel Dreskin gives you insight into practical, real-world experiences of marketing numerous successful games and also provides stories of the failures. View it here. An Architectural Approach to Level Design This is one of the first books to integrate architectural and spatial design theory with the field of level design. The book presents architectural techniques and theories for level designers to use in their own work. It connects architecture and level design in different ways that address the practical elements of how designers construct space and the experiential elements of how and why humans interact with this space. Throughout the text, readers learn skills for spatial layout, evoking emotion through gamespaces, and creating better levels through architectural theory. View it here. Learn more and download the ebook by clicking here. Did you know? GameDev.net and CRC Press also recently teamed up to bring GDNet+ Members up to a 20% discount on all CRC Press books. Learn more about this and other benefits here.
Sign in to follow this  
Followers 0
JoeJ

How will fp16 affect games

7 posts in this topic

Personally i'm excited about upcoming Vegas double rate fp16 capability.
In my realtime GI project i can use it probably for totally everything, including position.
I do not expect wonders. We already store compressed data so there is no bandwidth to win, but it should be a big speed up.

I guess the same is true for any renderer as well, but i'm no expert here.
What do you think? Do you plan to use it or already have experience you can share?
What expections do you have, where are the limitations?


I wonder why the feature is not in Scorpio, while PS4Pro already has it.
(Assuming a game uses equal amounts of fp32 and fp16 calculations, both have the same GFolps. If it uses mainly fp16, PS4Pro wins!)
I'm not sure if consumer Volta will have faster fp16 than fp32.
Also we read a lot that fp16 is an AI thing and not for games, which IMHO is total nonsense. Isn't it?
2

Share this post


Link to post
Share on other sites

Having read a little this comment on read it sort of sums up alot of FP16 simply.

 

 

FP 16 is less accurate with just 5bits for the exponent and 10 bits for the fraction. So less smaller numbers and a greater distance between high numbers. And the maximum number is also way smaller than it is for FP32.         

 

Anything around geometry, im not sure it has a real practical use, im sure Hodge might have some nefarious way of using it.   But I could see some benefits in local co-ordinates systems, I know some people working on long running popular commercial games where there are vast distances and this does play a part.  So maybe performance here.  

Maybe useful on Texture UV's also (one I can see being very useful).  Small numbers most of the time.

I would like to know though how well FP16 and FP32 play together, because it might be a similar story to single to double precision where there is a hit to do the cast.  So, it might be limited in what real applications you can use FP16 for.

1

Share this post


Link to post
Share on other sites

Posted (edited)

GeForce FX, it actually did have float16 computation hardware too. These new GPU's are just bringing it back into style again

 This is what I was thinking, read the thread title and I was like "FP16? Again?". Also quite important in mobile GPUs. Haven't kept up with the GPU news lately...

Edited by TheChubu
0

Share this post


Link to post
Share on other sites

It can be quite useful on PS4 Neo, I expect the same on new PC HW. You just have to know what you're doing and not mix it with fp32 (too much). And profile to see if it's better than with fp32.

The yield can be savings in interpolators (VS->PS param cache), double rate of (some) ALU, maybe even lower register pressure? It's totally good for games, e.g. HDR colour computations where you don't need that much precision but also anything else.

1

Share this post


Link to post
Share on other sites
I hope the register count doubles but also LDS if we use it for fp16 data (we would get 100% occupancy for almost everything).
Conversion with fp32 should be no issue. There might be a instruction that does this in one cycle, or even adding fp16+fp32 with free conversation.

I guess something like a deferred lighting pass could be done entirely with fp16.
But skinning a detailed character in fp16 and adding the result to a fp32 offset? Probaly too bad artefacts.
0

Share this post


Link to post
Share on other sites

Posted (edited)

I hope the register count doubles but also LDS if we use it for fp16 data

It's already common to compress data going in/out of LDS in cases where it avoids a spill to memory - the f32tof16 and f16tof32 intrinsics let you do the conversation and pack 2 floats into a 32bit LDS variable  :wink:

Edited by Hodgman
0

Share this post


Link to post
Share on other sites

I hope the register count doubles but also LDS if we use it for fp16 data

It's already common to compress data going in/out of LDS in cases where it avoids a spill to memory - the f32tof16 and f16tof32 intrinsics let you do the conversation and pack 2 floats into a 32bit LDS variable :wink:


I've done this a lot and since that i think fp16 would do for me even for positions.
OpenCL is more flexible here, it allows to un/pack a single value to hi or low word. We often use 1 or 3 numbers and want the remaining 16 bits for other stuff so that's very nice to have.
To get this in GLSL i made my own conversation routines but i can't remember if this was slower than using the built in functions with one zero and masking.

Remainds me on how much better OpenCL C is than shading languages.
OpenCL has pointers so you can use the same LDS memory for float4* and later for int2* or half*
With native fp16 the need for this in shading languages will become just more obvious.

Khronos plans to merge CL & VK, but i hope someone builds an open source GLSL replacement on top of SPIR-V before that happens... :)
0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0