Skip to content

Commit b397354

Browse files
committed
Optimization WIP
Already some ameliorations
1 parent 7af4360 commit b397354

4 files changed

Lines changed: 585 additions & 36 deletions

File tree

ProfilingReport.txt

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
###############################################################################################################
2+
##### ProFi, a lua profiler. This profile was generated on: Sam 23 fév 19:28:45 2019
3+
##### ProFi is created by Luke Perkin 2012 under the MIT Licence, www.locofilm.co.uk
4+
##### Version 1.3. Get the most recent version at this gist: https://gist.github.com/2838755
5+
###############################################################################################################
6+
7+
| TOTAL TIME = 3,555272
8+
| FILE : FUNCTION : LINE : TIME : RELATIVE : CALLED |
9+
| [string "boot.lua"] : anonymous : 493 : 3,287 : 92,46% : 1107 |
10+
| main.lua : draw : 65 : 0,377 : 10,60% : 1106 |
11+
| luven.lua : drawBegin : 326 : 0,165 : 4,64% : 1106 |
12+
| main.lua : update : 27 : 0,120 : 3,37% : 1106 |
13+
| luven.lua : drawEnd : 336 : 0,117 : 3,29% : 1106 |
14+
| luven.lua : set : 108 : 0,071 : 1,99% : 1106 |
15+
| luven.lua : update : 299 : 0,038 : 1,07% : 1106 |
16+
| luven.lua : unset : 114 : 0,021 : 0,59% : 1106 |
17+
| luven.lua : init : 263 : 0,019 : 0,54% : 1 |
18+
| [string "wrap_Event.lua"] : poll : 25 : 0,011 : 0,31% : 1107 |
19+
| luven.lua : move : 123 : 0,010 : 0,27% : 1106 |
20+
| luven.lua : cameraDraw : 83 : 0,009 : 0,26% : 1106 |
21+
| luven.lua : cameraUpdate : 77 : 0,009 : 0,26% : 1106 |
22+
| luven.lua : generateFlicker : 244 : 0,008 : 0,22% : 21 |
23+
| luven.lua : randomFloat : 236 : 0,007 : 0,19% : 105 |
24+
| [string "wrap_RandomGenerator.lua"] : random : 33 : 0,001 : 0,02% : 105 |
25+
| luven.lua : addFlickeringLight : 396 : 0,001 : 0,02% : 1 |
26+
| luven.lua : addNormalLight : 364 : 0,000 : 0,00% : 1 |
27+
| [string "wrap_Graphics.lua"] : anonymous : 339 : 0,000 : 0,00% : 1 |
28+
| [string "boot.lua"] : anonymous : 158 : 0,000 : 0,00% : 15 |
29+
| luven.lua : assertRangeNumber : 42 : 0,000 : 0,00% : 9 |
30+
| luven.lua : dispose : 344 : 0,000 : 0,00% : 1 |
31+
| luven.lua : assertPositiveNumber : 35 : 0,000 : 0,00% : 7 |
32+
| luven.lua : assertType : 51 : 0,000 : 0,00% : 7 |
33+
| luven.lua : init : 99 : 0,000 : 0,00% : 1 |
34+
| luven.lua : registerLight : 207 : 0,000 : 0,00% : 2 |
35+
| [string "boot.lua"] : anonymous : 152 : 0,000 : 0,00% : 6 |
36+
| luven.lua : removeLight : 468 : 0,000 : 0,00% : 2 |
37+
| luven.lua : clearTable : 240 : 0,000 : 0,00% : 3 |
38+
| [string "boot.lua"] : anonymous : 206 : 0,000 : 0,00% : 1 |
39+
| main.lua : anonymous : 51 : 0,000 : 0,00% : 5 |
40+
| [string "boot.lua"] : anonymous : 149 : 0,000 : 0,00% : 3 |
41+
| [string "wrap_Graphics.lua"] : getLanguageTarget : 300 : 0,000 : 0,00% : 2 |
42+
| [string "wrap_Graphics.lua"] : isVertexCode : 324 : 0,000 : 0,00% : 1 |
43+
| luven.lua : getNextId : 221 : 0,000 : 0,00% : 2 |
44+
| [string "wrap_Graphics.lua"] : isPixelCode : 328 : 0,000 : 0,00% : 1 |
45+
| [string "boot.lua"] : anonymous : 212 : 0,000 : 0,00% : 1 |
46+
| luven.lua : setAmbientLightColor : 291 : 0,000 : 0,00% : 1 |
47+
| dev/profi.lua : shouldReturn : 199 : 0,000 : 0,00% : 1 |
48+
| [string "boot.lua"] : anonymous : 209 : 0,000 : 0,00% : 1 |
49+
| luven.lua : setScale : 132 : 0,000 : 0,00% : 1 |
50+
| [C] : push : -1 : 0,000 : 0,00% : 1106 |
51+
| [C] : setTransformation : -1 : 0,000 : 0,00% : 1106 |
52+
| [C] : applyTransform : -1 : 0,000 : 0,00% : 1106 |
53+
| dev/profi.lua : startHooks : 234 : 0,000 : 0,00% : 0 |
54+
| [C] : cameraGetViewMatrix : -1 : 0,000 : 0,00% : 1106 |
55+
| [C] : sleep : -1 : 0,000 : 0,00% : 1106 |
56+
| [C] : present : -1 : 0,000 : 0,00% : 1106 |
57+
| [string "boot.lua"] : anonymous : 146 : 0,000 : 0,00% : 5 |
58+
| dev/profi.lua : stop : 85 : 0,000 : 0,00% : 1 |
59+
| main.lua : quit : 76 : 0,000 : 0,00% : 1 |
60+
| luven.lua : cameraGetViewMatrix : 91 : 0,000 : 0,00% : 1106 |
61+
| [C] : print : -1 : 0,000 : 0,00% : 1106 |
62+
| [C] : tostring : -1 : 0,000 : 0,00% : 1106 |
63+
| [C] : setShader : -1 : 0,000 : 0,00% : 2212 |
64+
| [C] : clear : -1 : 0,000 : 0,00% : 1106 |
65+
| [C] : draw : -1 : 0,000 : 0,00% : 1106 |
66+
| [C] : getFPS : -1 : 0,000 : 0,00% : 1106 |
67+
| [C] : pop : -1 : 0,000 : 0,00% : 1106 |
68+
| [C] : getBackgroundColor : -1 : 0,000 : 0,00% : 1106 |
69+
| [C] : xpcall : -1 : 0,000 : 0,00% : 1107 |
70+
| [C] : isActive : -1 : 0,000 : 0,00% : 1106 |
71+
| [string "wrap_Graphics.lua"] : createShaderStageCode : 305 : 0,000 : 0,00% : 1 |
72+
| [C] : isGammaCorrect : -1 : 0,000 : 0,00% : 1 |
73+
| [C] : getSupported : -1 : 0,000 : 0,00% : 1 |
74+
| [C] : upper : -1 : 0,000 : 0,00% : 1 |
75+
| [C] : send : -1 : 0,000 : 0,00% : 1161 |
76+
| [C] : createShaderStageCode : -1 : 0,000 : 0,00% : 1 |
77+
| [C] : getHeight : -1 : 0,000 : 0,00% : 1107 |
78+
| [C] : match : -1 : 0,000 : 0,00% : 4 |
79+
| [C] : type : -1 : 0,000 : 0,00% : 23 |
80+
| [C] : getTime : -1 : 0,000 : 0,00% : 2 |
81+
| [C] : newShader : -1 : 0,000 : 0,00% : 1 |
82+
| dev/profi.lua : start : 67 : 0,000 : 0,00% : 0 |
83+
| [C] : getWidth : -1 : 0,000 : 0,00% : 1109 |
84+
| [C] : newImage : -1 : 0,000 : 0,00% : 1 |
85+
| [C] : origin : -1 : 0,000 : 0,00% : 1106 |
86+
| [C] : newTransform : -1 : 0,000 : 0,00% : 1 |
87+
| [string "wrap_Math.lua"] : random : 37 : 0,000 : 0,00% : 105 |
88+
| dev/profi.lua : stopHooks : 238 : 0,000 : 0,00% : 1 |
89+
| [C] : yield : -1 : 0,000 : 0,00% : 1107 |
90+
| [string "boot.lua"] : anonymous : 639 : 0,000 : 0,00% : 0 |
91+
| [C] : pump : -1 : 0,000 : 0,00% : 1107 |
92+
| [C] : isDown : -1 : 0,000 : 0,00% : 4424 |
93+
| [C] : (for generator) : -1 : 0,000 : 0,00% : 1139 |
94+
| [C] : pairs : -1 : 0,000 : 0,00% : 4 |
95+
| [string "boot.lua"] : anonymous : 487 : 0,000 : 0,00% : 0 |
96+
| main.lua : load : 14 : 0,000 : 0,00% : 0 |
97+
| [string "wrap_RandomGenerator.lua"] : random : 75 : 0,000 : 0,00% : 105 |
98+
| [C] : step : -1 : 0,000 : 0,00% : 1107 |
99+
| [C] : __index : -1 : 0,000 : 0,00% : 105 |
100+
| [C] : tonumber : -1 : 0,000 : 0,00% : 105 |
101+
| [C] : random : -1 : 0,000 : 0,00% : 105 |
102+
| [C] : sethook : -1 : 0,000 : 0,00% : 1 |

0 commit comments

Comments
 (0)