Menu

Lag...

Extrakun
2009-02-28
2013-04-24
  • Extrakun

    Extrakun - 2009-02-28

    I have no idea why, but the default example causes the application to lag badly. When I close the gigantic form in the middle (the one with all the text-boxes, combo, grid and dropdown list), the frame rate improves.

    I am using a Dual Core PC 1.87GHZ and a 7600GT.

     
    • Eric Grossinger

      Eric Grossinger - 2009-02-28

      If you could try to pin down which control that would help greatly. Try removing a single control and recompiling the example until you get some noticeable improvements.

      There is a lot of rendering going on in that form, the textbox, the listbox, the combobox.. maybe I can find a better way, like not rendering as often as it is now.

      And the 'grid' is on Form #2, not the 'gigantic form' which would be Form #1

       
    • Extrakun

      Extrakun - 2009-02-28

      Will do. The first form that is focused seems to be the cause; I'll try removing controls one by one from it and see how it goes.

       
  • Joël Langlois

    Joël Langlois - 2010-04-16

    The lag is caused due to excessive boxing and unboxing, error checking and looping on update and draw.

    An example: The movement of the cursor, while nothing else is created and drawn in the window, is slow. (Tested by observing the mouse cursor move when the Windows cursor is above the XNA window.)

     

Log in to post a comment.

MongoDB Logo MongoDB