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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
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
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.
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.)