-
Notifications
You must be signed in to change notification settings - Fork 2k
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
mod_profiling - wrong function prototype for on_punch #4220
Comments
This is actually a known issue, and will be fixed with #3849 |
Please test #4245 and report back any issues. |
Hi Tim, downloaded and compiled this on Linux Xubuntu 14.04 LTS. It There were a lot of zero's on the % columns so I changed it to show one reporter.lua Line 54: self:print(" %-55s | %9d | %9d | %9d | %5d I tested /profile dump, print, save, and reset. See the attached "save" result - those zombies are hungry! On 06/22/2016 10:08 AM, Tim wrote:
Values below show times/percentages per server step. instrumentation | min µs | max µs | avg µs | min % | max % | avg %
|
Alright, thanks :-) Good idea to increase the precision of the relative values. |
Not sure why the OSX unit test failed on threading... do you need to On 06/23/2016 03:43 AM, Tim wrote:
|
That's apparently a known problem, which is not related to the changes in the PR. |
Turning on profiling, then punching an entity causes crash for mods that expect 'dir" to not be nil as specified in the API. This seems to be because the function does not pass enough parameters with the profiling substitute.
builtin/game/mod_profiling.lua:290
should that not be
on_punch(self, hitter, time_from_last_punch, tool_capabilities, dir)
and
mod_statistics.entity_callbacks[cbid](self, hitter, time_from_last_punch, tool_capabilities, dir)
The text was updated successfully, but these errors were encountered: