XNA Creators Club Online
community forums

Search Forums

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

    Ah lol, anyway tried and same results.
    Posted to General (Forum) by feal87 on 6/19/2009
  • Re: C# Array[] speed vs List<> speed

    [quote user=&quot;Nick Gravelyn&quot;]Why not just use sw.Elapsed.TotalMilliseconds? There&#39;s already a property that gives you the time in milliseconds with a decimal. :) [/quote] http://msdn.microsoft.com/en-us/library/system.diagnostics.stopwatch.elapsedmilliseconds.aspx well, because its a long without decimals. The ...
    Posted to General (Forum) by feal87 on 6/19/2009
  • Re: C# Array[] speed vs List<> speed

    3,167861 ms foreach array 9,075665 ms for array unoptimized 2,935359 ms for array optimized  20,38946 ms foreach list 17,04064 ms for list unoptimized 6,171315 ms for list optimized As i said they are very little differences between them, only the foreach list is the very slow one compared to the rest (9 times slower than the for ...
    Posted to General (Forum) by feal87 on 6/18/2009
  • Re: C# Array[] speed vs List<> speed

    [quote user=&quot;Nick Gravelyn&quot;]What numbers do you get if you write out milliseconds (with decimals) instead of ticks? Ticks vary from machine to machine and in general it&#39;s just hard to conceptualize what the difference between 32,206 ticks and 66,991 ticks is. Is that .01ms? .1ms? 1ms? 10ms? However it&#39;s worth noting that ...
    Posted to General (Forum) by feal87 on 6/18/2009
  • Re: C# Array[] speed vs List<> speed

    Interested from your results I&#39;ve tried with the Vector4 class from SlimDX and some other kind of tests to be sure of my findings. These are the codes used. The first is the common foreach over array, then there is an unoptimized for over array, then there is an optimized for over array and then all the lists one. ...
    Posted to General (Forum) by feal87 on 6/18/2009
  • Re: C# Array[] speed vs List<> speed

    [quote user=&quot;Nick Gravelyn&quot;][quote user=&quot;feal87&quot;]Using my own performance test framework I get these results : 2.000.000 elements of type int 26860 ticks array with foreach  26776 ticks array with for 139474 ticks list with foreach 53511 ticks list with for on a Core 2 Duo T7250 2 Ghz. Not that any of ...
    Posted to General (Forum) by feal87 on 6/18/2009
  • Re: C# Array[] speed vs List<> speed

    Using my own performance test framework I get these results : 2.000.000 elements of type int 26860 ticks array with foreach  26776 ticks array with for 139474 ticks list with foreach 53511 ticks list with for on a Core 2 Duo T7250 2 Ghz. Not that any of these will actually make a difference unless you have this high ...
    Posted to General (Forum) by feal87 on 6/18/2009
  • Re: My Managed DirectX10 Version

    [quote user=&quot;RobyDX&quot;]SlimDX is an excellent library and support a lot of tecnology rather than DirectX10. But I wanted something identically to native DirectX and I have tried to do it. The only different things that I&#39;ve maden is for Map and for asincronous loading (mantaining pointer in a class). SlimDX miss some features ...
    Posted to Direct3D 10 (Forum) by feal87 on 6/2/2009
  • DirectX10 BGRA and DirectShow

    Hi all :) I&#39;ll cut short to the question, I have a DirectShow source with a SampleGrabber that pick up images in RGB32 format, i need them inside a texture in DirectX10. There is a way to use DirectShow in BGRA32 mode (or DirectX10 in RGBA32 mode :D) to allow simple passage of data between it and DirectX10? Or do I have to swirl data ...
    Posted to Direct3D 10 (Forum) by feal87 on 5/8/2009
Page 1 of 1 (9 items)