Using IGP Profiler with IGF

Jul 7, 2012 at 11:45 PM
Edited Jul 7, 2012 at 11:46 PM

I assume the IGP Profiler works with IGF projects?

I followed the steps from the pdf and added to my assemblyinfo file:

 

[

assembly: Profiler(GameClass = "MyNamespace.MyApplication")]

 

 

 And I add this to my Initialize function in my application class: 

var profilerGameComponent = new ProfilerGameComponent(this, "MyFont");

ProfilingManager.Run = true;

 Components.Add(profilerGameComponent);

 

I also added the post build event. But nothing happens when I press ctrl+F12

 

Am I missing something?

 

 

Jul 9, 2012 at 8:43 AM

First, make sure that the GameClass property of the ProfilerAttribute is set to the proper inherited Application class you created.

Then, if it is still not visible, make sure to add an Update and Draw method override to your Application class if not yet set. This is mandatory and since I developed the profiler with Xna in mind, which therefore generally means the developer gets his Game class overriding these methods, I didn't mention it in the docs.

If you still have issues with it, let me know and I'll see what I can do for you.

Jul 10, 2012 at 9:12 AM

Ah yest adding the update and draw mehtods did it thanks!

Coordinator
Jul 10, 2012 at 7:55 PM

You're welcome ;)

Glad it helped.