Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 04/07/2021 in Posts

  1. View File Real Racing 3 (v10.4.x) Player Profile Hack REAL RACING 3 PLAYER PROFILE HACK Working RR3 version: 10.3.x Current version: 10.3.6.2.5 Description: Change player profile statistics: eraned/spent r$, gold and m$, total time played, player level, trophies won and total upgrades installed. Instructions: Logout and disconnect device, then run the script and edit your stats. Known issues: Not working with all devices. Do you have problems changing currency? Try this Video Submitter MarioRossi93i Submitted 07/06/2020 Category LUA scripts  
    1 point
  2. seriously? d*** I'm always the last to know things
    1 point
  3. 1 point
  4. Avoid use global variables Global variables is slow. Also if you put local gg = gg At top of your script it can speed up it. Just one line. Now see tests: local n = 1000000 local t = os.clock() for i = 1, n do gg.isVisible() end t = os.clock() - t print('use global gg: '..t..' seconds') local gg = gg local t = os.clock() for i = 1, n do gg.isVisible() end t = os.clock() - t print('use local gg: '..t..' seconds') a, b, c = 1, 2, 3 local t = os.clock() for i = 1, n do c = a + b end t = os.clock() - t print('use global vars: '..t..' seconds') local a, b, c = 1, 2, 3 local t = os.clock() for i = 1, n do c = a + b end t = os.clock() - t print('use local vars: '..t..' seconds') Results: use global gg: 2.138 seconds use local gg: 1.6 seconds use global vars: 2.068 seconds use local vars: 0.727 seconds It is not big difference, because I run it on powerful emulator. On real device it can be more slow. You can see disassembled code - for global vars need more Lua instructions, so it more slow in any case. Upvalue too slow, Because of that better define local copy of var in places where you need optimization. For example huge math.
    1 point
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.