XNA Creators Club Online
community forums

Search Forums

Page 1 of 70 (698 items) 1 2 3 4 5 Next > ... Last »
  • Re: Trace.WriteLine() in Release mode doesn't work.

    It shouldn't be 2 orders of magnitude, so unless you're exaggerating by 1 order of magnitude then something is rather wrong. Back when I had a single core AMD 3500+ my figure said it was (naively) about 7 times slower, when I upgraded to a Q6600 it was more like 10-12. If you're really seeing code running 100 times slower on the 360 ...
    Posted to General (Forum) by ajmiles on 8/29/2009
  • Re: Loading on the fly

    If you know how to do it with models then it's even easier to do for textures. You've got System.IO to load the texture file, construct a Texture2D, and call SetData with the data that came from the file...
    Posted to General (Forum) by ajmiles on 8/2/2009
  • Re: Bizarre low fps behavior with XNA 3.1

    I ran that game with vsync off and IsFixedTimeStep set to false and it was running at somewhere between 3000 and 4000 fps. It quickly became clear it isn't use time-based updates as it was unplayably fast, but no sign of low FPS to me. (60hz with vsync on btw).
    Posted to General (Forum) by ajmiles on 7/21/2009
  • EnableAutoDepthStencil = false doesn't work on 360, Connect issue posted.

    I posted a Connect issue re EnableAutoDepthStencil not working on 360, I'm sure it always used to as I had a 2D game running at 1920x1080 and it used to run better without an auto DepthStencil as it didn't trigger Predicated Tiling, this doesn't seem to be the case any more. I can't think of any reason why one would always need to ...
    Posted to XNA Framework (Forum) by ajmiles on 7/17/2009
  • Re: Texture2D.GetData/SetData Question

    You don't appear to have read the documentation for that version of GetData as it reads: Parameters data: The array to receive texture data. startIndex: The index of the element in the array at which to start copying. elementCount: The number of elements to copy. So your second argument can't possibly be ...
    Posted to XNA Framework (Forum) by ajmiles on 4/24/2009
  • Re: I just realized how slow the Xbox HDD is...

    How many megabytes are we talking about? I probably shouldn't quote any drive speed figure unless I can also go find them in a public presentation, but unless you're saving well over 10MB it's hard to imagine it taking more than 3 seconds.
    Posted to General (Forum) by ajmiles on 4/21/2009
  • Re: Memory leak using spriteBatch

    Although you might think that calling Dispose before 'new'ing another Texture wouldn't increase memory consumption, it's likely that the either the GC isn't keeping up or that the resources on the GPU aren't being cleared immediately. Either way, there's no need to do what you're doing, create the Texture once, ...
    Posted to XNA Framework (Forum) by ajmiles on 4/20/2009
  • Re: wav file causing game to lag?

    You need to explain what you mean by lag... Is this a brief one-time stutter that occurs when the SoundEffect is loaded, or does it stutter (low frame-rate) for the entire duration the sound is playing?
    Posted to General (Forum) by ajmiles on 4/14/2009
  • Re: I ported an awesome raycaster from C++ to XNA, but it won't run on my 360 anymore, please help :)

    You need : "GraphicsDevice.Textures[0] = null;" before you SetData(foregroundColors) in Draw to unset the texture from the device.
    Posted to General (Forum) by ajmiles on 4/12/2009
  • Re: I ported an awesome raycaster from C++ to XNA, but it won't run on my 360 anymore, please help :)

    You need to move it to LoadContent where you originally had the loading of the pixel texture (that's no longer needed). I literally just cut and paste the line: spriteTexture = new Texture2D(graphics.GraphicsDevice, screenWidth, screenHeight, 0, TextureUsage.None, SurfaceFormat.Color); from Draw() into LoadContent(). As for FPS, I just used ...
    Posted to General (Forum) by ajmiles on 4/12/2009
Page 1 of 70 (698 items) 1 2 3 4 5 Next > ... Last »
var gDomain='m.webtrends.com'; var gDcsId='dcschd84w10000w4lw9hcqmsz_8n3x'; var gTrackEvents=1; var gFpc='WT_FPC'; /*<\/scr"+"ipt>");} /*]]>*/
DCSIMG