Jump to content
This is not recommended for shared computers
Sign in anonymously
Don't add me to the active users list
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 ?
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.
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.
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 ?
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 ?
GameDev.net™, the GameDev.net logo, and GDNet™ are trademarks of GameDev.net, LLC