Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 23 Apr 2003
Offline Last Active Yesterday, 05:15 PM

Posts I've Made

In Topic: Visual Studio Community need to login!

22 November 2015 - 07:08 AM

Ya I don't like the login part either.  That said its a pretty awesome IDE, so I suck it up and grumble to myself quietly :)

In Topic: Vector size and int

05 November 2015 - 08:36 PM

size_t (the type returned by size() function) is unsigned; subtract 1 from 0 with an unsigned number give you a very large number.  So the comparison that (index < pool.size() - 1) will always return true when size() == 0 (well to be pedantic not always, but pretty much always).  As ApochPiQ is stated, using (index < pool.size()) avoids this problem.

In Topic: How can I declare a nan literal?

03 November 2015 - 03:28 AM

But worst sin of all; NaNs are incredibly useful for finding uninitialized variables. I often override all allocators (new, malloc, etc) and initialize all the range of memory I return to signaling NaNs. Then make sure the control word is set to signal exceptions on any NaN.

When an uninitialized value is used, bam! exception raised, problem found.


If you use NaNs explicitly around all of your codebase, this technique becomes useless since every time you initialize a float with a NaN you'll get a false positive.

Also NaNs can hit the performance. CPUs rarely operate at 100% speed when NaNs are involved.


A bit confused here, isn't using NaN's for finding uninitialized variables what he is trying to do?  Or does even assignment of signaling NaN's cause an exception (I was under the impression they were fine till you tried to do a calculation)?

In Topic: Antialiasing will stay in the future ?

28 October 2015 - 07:58 PM

As Hodgman pointed out, Anti-Aliasing addresses far more than just lack of resolution.  Point sampling is actually a very poor approximation of what actually occurs in nature; cone/path/photon tracing is much closer to what is actually going on.  Point sampling, regardless of the resolution, will always exhibit artifacts, so AA schemes of various sorts will always be needed.

In Topic: When using C++ and including d3d11.lib, do you not use the windows registry a...

23 October 2015 - 01:30 PM

I'm not sure if this is what you're looking for: https://fgiesen.wordpress.com/2011/07/09/a-trip-through-the-graphics-pipeline-2011-index/, but it might help.