XNA Creators Club Online
community forums

Search Forums

Page 1 of 1 (7 items)
  • Re: C# Array[] speed vs List<> speed

    Yes, is only for positive values in this case. Thanks
    Posted to General (Forum) by jmartingarcia on 6/19/2009
  • Re: C# Array[] speed vs List<> speed

    Brilliant !! Thanks !
    Posted to General (Forum) by jmartingarcia on 6/19/2009
  • Re: C# Array[] speed vs List<> speed

    1.- Yes, you are right, I should create the rectangle outside the loop. 2.- That won&#39;t really work I think. You see, if the X position is the pixel 1.90 then should be the pixel 2 and not the pixel 1 on the screen. &nbsp;&nbsp;&nbsp;&nbsp; When I convert from world units to pixels I will get fractional pixels that I need to convert ...
    Posted to General (Forum) by jmartingarcia on 6/19/2009
  • Re: C# Array[] speed vs List<> speed

    I don&#39;t know why the NProf does not want to work anymore. It runs the application but then after some seconds the application disappears and the profiler never stops. Well, anyway, the profiler said my application was taking about 20% of the time on the collision detection. The childs of the collision detection where basically the ...
    Posted to General (Forum) by jmartingarcia on 6/19/2009
  • Re: C# Array[] speed vs List<> speed

    Based on this and the documentation pointed by Dean, seems that using a List&lt;&gt; or Array won&#39;t make a big impact in my case. I run the profiler and for my surprise where the application is wasting a lot of time is calling Convert.ToInt32(float64) ... all my objects are in world coordinates and this world coordinates can have ...
    Posted to General (Forum) by jmartingarcia on 6/18/2009
  • Re: C# Array[] speed vs List<> speed

    Nick, Thank you for your valuable response. About your points: 1) I thought the List&lt;&gt; it was that, really a list and not something encapsulating an array. Because in that case, deleting the first member of the list will be the same than deleting any other member, just the pointer of the previous member will point to the next ...
    Posted to General (Forum) by jmartingarcia on 6/18/2009
  • C# Array[] speed vs List<> speed

    Hi guys, I&#39;ve read somewhere on this forum that an array ( i.e. Label[] ) is much faster than a List&lt;&gt;. I&#39;m having small lag problem on my development so I&#39;m trying to find where is the problem. One thing I know is that I&#39;m using List&lt;&gt; instead of arrays. So made this simple test to see if there is really a ...
    Posted to General (Forum) by jmartingarcia on 6/18/2009
Page 1 of 1 (7 items)