Ska Software

Any general guidelines for looking into and dealing with crazy hiccups on X360 Every minute or so there'll be a good 0.5 - 1.0 second lockup followed by business as normal. Garbage collection runs a lot faster than that, like several times per second, right

Thanks.



Re: XNA Game Studio Express Crazy Hiccups

Joel Martinez

no, GC shouldn't be running that often ... well, on the desktop GC (windows) it might ... but on 360 it's the death knell. There's a good bit of resources on reducing the load on the GC. I'm sure you've seen this one, but here it is just in case:
http://blogs.msdn.com/netcfteam/archive/2006/12/22/managed-code-performance-on-xbox-360-for-the-xna-framework-1-0.aspx

follow those guidelines and you should be ok





Re: XNA Game Studio Express Crazy Hiccups

Ska Software

Thanks!

Now, I'm trying to run the remote performance monitor, but here's the problem evidently (from the log):

XNARPM.exe Error: 0 : RemoteDeviceManager.LoadPluginAssembly Exception: Could not load file or assembly 'RemoteToolsFramework.LocalPackage' or one of its dependencies. The system cannot find the file specified.
XNARPM.exe Error: 0 : RemoteDeviceManager.LoadPluginAssembly Exception: Could not load file or assembly 'RemoteToolsFramework.RAPIPackage' or one of its dependencies. The system cannot find the file specified.
XNARPM.exe Error: 0 : RemoteDeviceManager.LoadPluginAssembly Exception: Could not load file or assembly 'RemoteToolsFramework.TCPPackage' or one of its dependencies. The system cannot find the file specified.
XNARPM.exe Error: 0 : RemoteDeviceManager.LoadPluginAssembly Exception: Could not load file or assembly 'RemoteToolsFramework.CoreConPackage' or one of its dependencies. The system cannot find the file specified.
XNARPM.exe Information: 0 : RemoteDeviceXna ctor
XNARPM.exe Error: 0 : RemoteDeviceManager.LoadDeviceCollections Exception: Could not find file 'C:\Documents and Settings\James\Application Data\Microsoft\RemoteToolsFramework\DefaultCollectionStore3.0'.

What's the verdict Do I have to reinstall something hefty





Re: XNA Game Studio Express Crazy Hiccups

Stephen Styrchak - MSFT

Ska - Does this problem only occur while debugging, or also when you run without debugging (You can do that either by launching from the My XNA Games screen on the Xbox 360, or using Debug | Start Without Debugging in the IDE.)

If this problem is occurring only during debugging, and you are using a wireless connection to debug your game, then it could be due to network latency. During debugging, the IDE must communicate with the remote debugger, and a long enough lag in that communication will pause the debuggee (your game) until communication resumes. If you are not using wireless, then this is probably not the cause.

Anyway, if this appears to be the case, then the workaround is to use a wired connection or somehow boost your wireless signal to get more consistent throughput.

--Stephen





Re: XNA Game Studio Express Crazy Hiccups

Ska Software

Nope, wired. I don't think I'm really clear on using the RPM.

What I do is open RPM, specify the Xbox360 in the top-left dropdown, enter the full path for my game exe (Something like C:\dev\...\bin\release\project.exe) in the middle dropdown, and hit Launch. Then I get an error. I forget what the wording on the error is and am at work now so can't check up, but I don't think it's anything to the effect of an incorrect exe path.

:edit:

Just realized, I don't think I got SP1 for C# Express.  Could this be the problem   I just read on the XNA Team Blog that the RPM is from SP1 or something.





Re: XNA Game Studio Express Crazy Hiccups

Stephen Styrchak - MSFT

No, RPM should not require SP1.

To launch your game from RPM, you'll need to enter the "title" of the game in the Application box, not the path to the built assembly. The title is the friendly name that shows up in the My XNA Games screen (its default is the name of your project).

From the errors you got, I suspect the installation might not have succeeded, but I'm really not sure.

--Stephen





Re: XNA Game Studio Express Crazy Hiccups

Ska Software

Ok--glad to report that the friendly name was the issue (I read about the "friendly name" on the MSDN page on running RPM, but they had no explanation on what a friendly name was--maybe they should put up some explanation). I got the right friendly name working, and am pleased to say that I can monitor performance now, and actually improved on the state of things (albeit slightly). I got the latency from 13000ms to 7000ms (still to high). But it's a start!

Thanks!