by date
Plan for Phil Carlisle
Plan for Phil Carlisle
| Name: | Phil Carlisle | ![]() |
|---|---|---|
| Date Posted: | May 11, 2004 | |
| Rating: | Not Rated | |
| Public: | NO | |
| Comments: | YES | |
| RSS Feed: | or Subscribe with . | |
| Profile Page: | View profile page for Phil Carlisle |
Blog post
Weeel. Myself and Beffy are workin away on the AI. But I hit a snagette in that for some reason I get some huge spikes in performance at odd times. Sometimes it doesnt happen, other times it does.
So in order to track it down, I needed to do some profiling, but no the "dump" type profiling of stock TGE fame :)
I needed to do some realtime "move around and does the time change" profiling.
So I decided to hack up the TGE profile a bit, so that it can dump itself into a gui control on the fly. The idea being that the gui control will then display a bunch of raster meters (coloured bars to you and me) to show the %age of the total frame time consumed by the given profile function.
Anyway, thats kind of semi-almost-working right now. I guess I really should try and figure out what it is the profiler is actually telling me (it gets confusing, so I'm going to wait for justin to give me the skinny), then I'll know if its lying to my gui control :)
On the upside, it does actually appear to work, although it doesnt draw the pretty bars yet. It gets the non-sub time and the total time, and the number of invocations (how many times that particular profiling route has been hit).
I've made it so it only draws the items you tell it
for example.
Rather than drawing ALL the profile entries.. some of which arent too useful when youre trying to narrow down your bottleneck.
So hopefully I'll get this finished and out there as a resource in short time.
So in order to track it down, I needed to do some profiling, but no the "dump" type profiling of stock TGE fame :)
I needed to do some realtime "move around and does the time change" profiling.
So I decided to hack up the TGE profile a bit, so that it can dump itself into a gui control on the fly. The idea being that the gui control will then display a bunch of raster meters (coloured bars to you and me) to show the %age of the total frame time consumed by the given profile function.
Anyway, thats kind of semi-almost-working right now. I guess I really should try and figure out what it is the profiler is actually telling me (it gets confusing, so I'm going to wait for justin to give me the skinny), then I'll know if its lying to my gui control :)
On the upside, it does actually appear to work, although it doesnt draw the pretty bars yet. It gets the non-sub time and the total time, and the number of invocations (how many times that particular profiling route has been hit).
I've made it so it only draws the items you tell it
enableProfiling(true);
profilegui.resetProfiles();
profilegui.addProfile("glFinish");
profilegui.addProfile("MainLoop");
for example.
Rather than drawing ALL the profile entries.. some of which arent too useful when youre trying to narrow down your bottleneck.
So hopefully I'll get this finished and out there as a resource in short time.
Recent Blog Posts
| List: | 11/28/08 - GDC AI sessions 09/18/08 - Tell me I'm not going crazy!! 12/05/07 - The importance of good tools for productivity 11/17/07 - Using the way back machine. 09/21/07 - Juggling cats. 09/04/07 - End of Summer. 08/27/07 - Come work with me!! 08/14/07 - The changing nature of entertainment |
|---|
Submit your own resources!| Paul Dana (May 11, 2004 at 18:46 GMT) |
I have a spike i cant explain but it seem's like its only right after joining the game, just the once. A profile of averages might not catch it.
good job
| Ken Finney (May 11, 2004 at 19:33 GMT) |
| Justin Mette (May 11, 2004 at 20:27 GMT) |
| Ben Garney (May 11, 2004 at 22:13 GMT) |
You must be a member and be logged in to either append comments or rate this resource.



Not Rated


