Rick Posted April 1, 2013 Share Posted April 1, 2013 I attempted to use https://love2d.org/f....php?f=3&t=9387 which looks like it should work for LuaJIT. However it seems like require is returning a boolean value as when I do his example in the post I get an error when I use ProFi:start() and it says "attempt to index global 'ProFi' (a boolean value). Anyone able to get a Lua profiler to work with Leadwerks 3? Why would self.profiler = require("Scripts/ProFi.lua") result in self.profiler being set to true and not the object that ProFi.lua returns? [edit] Nevermind I got it working. Just removed the local part of ProFi table inside the script so it's global. Quote Link to comment Share on other sites More sharing options...
Rick Posted April 2, 2013 Author Share Posted April 2, 2013 Profile from my game DrawText() takes up way more than I would have thought. Does anything seem out of the ordinary with this because I'm getting about 20 fps on my PC. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.