Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 19 Jul 2011
Offline Last Active Mar 27 2016 02:21 PM

Topics I've Started

Read one text line without limit correctly

04 February 2016 - 08:00 PM


Using fgets you can read one line correctly but you need to know the max line size possible.

How read one line without limit correctly ? Read each character until '\n' is the only way ?


[Debate] Using namespace should be avoided ?

03 February 2016 - 08:54 AM


What do you think about "using namespace" ?

Personally I think it's not explicit then when you use it and can give confusions.

Get Global Variables Always Inlined ?

06 January 2016 - 06:19 PM


I did a simple test to get a global variable from a struct pointer and from the global namespace directly.

The two cases result to an inlined get in release when you look at the assembly view from MSVC 2013.

I did the test for an executable build, is it always the case for executable, static and shared lib ?

To be clear, the variable is not declared in the header, only in the .cpp.


Moment Shadow Maps for Single Scattering, Soft Shadows and Translucent Occluders - i3D...

06 January 2016 - 08:32 AM


here a video about the update of the MSM shadowing technique :

I remember MJP did an article about it and said EVSM still the best, is it always the case ?


Random Number Generator Seed Initialization

02 January 2016 - 07:32 AM


I always used a global uint32 seed in the anonymous namespace.

Is it better to have each time a seed initialized in the constructor of random number generator and instance each time needed ?