Jump to content

  • Log In with Google      Sign In   
  • Create Account

korvax

Member Since 20 Jun 2012
Offline Last Active Oct 02 2014 12:41 AM

#5099558 Strange heap problem when deleting an array

Posted by korvax on 08 October 2013 - 07:19 AM

I also wouldn't recommend using i as the for loop counter as well as the int pointer returned from new[]. (It's legal, since the for loop i hides the int* i in the scope of the for loop, but bad style).

 

Lower case L is a bad name for a variable too (especially with this font), it looks too much like capital I, vertical bar | or 1.

 

INT_FUNCTION in all capitals isn't the best style either; most people use all caps for #defines, constants, or struct names (in which case INT_FUNCTION() could be the default constructor, I suppose, but its name suggests to me it is a function).

 

Good style is important it promotes readability and indicates the intent of code to others.

Hi yes i know, I was just something i type to show case my problem.. thx for the feedback though.




#5027844 Trying to understand Lighting general.

Posted by korvax on 01 February 2013 - 07:55 AM

HI, i acctually found the answer on my fist question in Ricks (not sure what his gamedev  is) Tower22 blog 

http://tower22.blogspot.dk/2010/11/from-deferred-to-inferred-part-uno.html if anyone has the same question..

 

So each pixelshader outputs the pixelcolor and the next one will have that pixelcolor as input so no need to do anything for merge the output it seems.




#4991714 StencilDepthBufferView decreases the FPS

Posted by korvax on 19 October 2012 - 01:54 AM

HI, just to give some feedback, if anyone have a similar problem in the future, your where spot on mhagain and i now running around 1200 again. thx.


PARTNERS