-
-
Notifications
You must be signed in to change notification settings - Fork 642
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Debug Panel improvements #108
Comments
I'd like to see some debug numbers for loaded resources, too:
|
Good ones too, I guess we will need a bigger debug panel :) |
Would the "basic console" provide anything that window.console doesn't? We already get messages and can run JavaScript in them. ;) Could be useful I guess for old IE... |
Per frame statistics would be cool. See Florian's comment on this article: https://blog.mozilla.org/javascript/2012/08/28/incremental-gc-in-firefox-16/ |
this still require more works : * better use window.performance.memory (cache the object) * make this works on other webkit browser (Safari has some stuff too) * avoid generating more object (e.g Array.shift) * probably a bit better algorithm when computing the sample points * add more information into the graph
I was just thinking that refactoring the debug Panel using the plugin mechanism would be a good idea, any thoughts ? the point being that once in production, the corresponding (debug) code is completely useless. |
…onstructor (through the register function)
i'm updating the milestone for this one (0.9.6), as I won't provide anymore update for the coming 0.9.5 |
I must add a bug I just found. If the viewport offset is not (0,0), the click area is not correct. So if the camera is moved to (100,100) for example and you click on the renderHigBox checkbox, it won't detect it as a click. |
Hi @nvlbg Using the very last version (0.9.5), and the provided "platformer" example (where the debug panel is used) I cannot reproduce it on my side. Do you have a specific example where I could the issue ? |
Actually, it looks like if the cam is moved on the x axis this does not happen, but it happens when the cam is moved on the y axis. You can check it here - http://92.62.251.95:8080/ P.S. It is my local server, so it is not up 24/7. |
@nvlbg fixed ! |
Moving this one as well to 0.9.8 as I don't believe further improvements will be done as part of 0.9.7 ;) |
An internesting lib that would allow to design a better debug panel : |
FPS information is now only available through the debug panel object (and not anymore through the HTML element) (Only one left now : me.debug.renderCollisionMap!)
Added basic update & draw millisecond durations: 63072b1 |
i'm not seing anything major left here, so I will close it for now. if any particular feature stands out (that I don't see here), we can then open a new ticket |
While I still have them fresh in my mind, here is a list of potential improvements for the new Debug Panel :
add the possibility to show/hide the panel through a parameter in the URLadd Chrome memory/heap profiling information (see for example : http://coderwall.com/p/2va2mg)track objects total update durationtrack objects total draw durationtrack numbers of rect created (N/A)add some useful graphs ? (heap, update/draw duration ?)make it scalable (canvas size independant)make it a float object (on top of the game canvas and not in the canvas)The text was updated successfully, but these errors were encountered: