Re: [Mod] Petz [v15.5] [petz]
Posted: Thu Aug 06, 2020 23:39
...
The official Minetest discussion board
https://forum.minetest.net/
Code: Select all
petz: | 2 | 181552 | 2556 | 0.0 | 98.9 | 30.0
- on_activate[39] ................................... | 64 | 1240 | 192 | 0.0 | 20.8 | 1.5
- on_leaveplayer[3] ................................. | 2 | 3 | 2 | 0.0 | 0.1 | 0.0
- on_step[44] ....................................... | 37 | 41750 | 196 | 0.0 | 90.7 | 5.0
- on_activate[32] ................................... | 68 | 814 | 187 | 0.0 | 8.8 | 1.6
- get_staticdata[19] ................................ | 93 | 894 | 268 | 0.2 | 1.6 | 0.5
- on_player_receive_fields[5] ....................... | 1 | 85 | 1 | 0.0 | 3.7 | 0.0
- on_activate[16] ................................... | 69 | 281 | 148 | 0.0 | 3.5 | 1.1
- on_rightclick[42] ................................. | 332 | 5343 | 835 | 0.4 | 8.2 | 1.9
- get_staticdata[12] ................................ | 23 | 2655 | 169 | 0.0 | 12.1 | 0.8
- get_staticdata[34] ................................ | 24 | 1303 | 123 | 0.0 | 12.0 | 0.8
- get_staticdata[5] ................................. | 49 | 1622 | 206 | 0.0 | 18.8 | 1.2
- on_player_receive_fields[2] ....................... | 1 | 114 | 2 | 0.0 | 1.4 | 0.0
- on_step[45] ....................................... | 38 | 26012 | 284 | 0.0 | 79.6 | 4.9
- get_staticdata[29] ................................ | 23 | 749 | 167 | 0.1 | 10.0 | 1.3
- get_staticdata[13] ................................ | 25 | 329 | 88 | 0.0 | 3.1 | 0.5
- on_step[16] ....................................... | 33 | 11464 | 174 | 0.0 | 44.8 | 2.2
- on_punchplayer[1] ................................. | 2 | 128 | 13 | 0.0 | 2.0 | 0.2
- on_activate[28] ................................... | 103 | 10545 | 1478 | 0.1 | 21.6 | 3.9
- on_step[42] ....................................... | 37 | 17485 | 212 | 0.0 | 86.3 | 4.3
- on_step[31] ....................................... | 28 | 21535 | 300 | 0.0 | 85.7 | 2.4
- on_activate[38] ................................... | 121 | 121 | 121 | 2.7 | 2.7 | 2.7
- on_activate[15] ................................... | 65 | 4085 | 285 | 0.0 | 21.1 | 1.4
- on_activate[14] ................................... | 188 | 188 | 188 | 0.7 | 0.7 | 0.7
- get_staticdata[2] ................................. | 27 | 1824 | 234 | 0.0 | 15.9 | 0.8
- on_leaveplayer[1] ................................. | 2 | 3 | 2 | 0.0 | 0.1 | 0.0
- on_rightclick[22] ................................. | 1868 | 1868 | 1868 | 5.1 | 5.1 | 5.1
- on_activate[34] ................................... | 71 | 358 | 194 | 0.2 | 6.4 | 1.7
- on_activate[13] ................................... | 100 | 2341 | 426 | 0.0 | 13.0 | 3.2
- on_player_receive_fields[3] ....................... | 1 | 107 | 1 | 0.0 | 1.0 | 0.0
- on_step[17] ....................................... | 37 | 21792 | 251 | 0.0 | 76.8 | 3.0
- get_staticdata[7] ................................. | 27 | 405 | 129 | 0.0 | 6.4 | 1.0
- on_step[15] ....................................... | 33 | 86399 | 2052 | 0.0 | 90.3 | 7.6
- on_step[43] ....................................... | 30 | 36340 | 306 | 0.0 | 95.3 | 5.6
- on_step[30] ....................................... | 31 | 13614 | 189 | 0.0 | 88.2 | 3.9
- get_staticdata[3] ................................. | 29 | 1261 | 173 | 0.0 | 10.5 | 0.4
- on_activate[48] ................................... | 80 | 938 | 274 | 0.1 | 13.9 | 1.7
- ABM[3] ............................................ | 996 | 3050 | 1757 | 2.1 | 7.9 | 4.1
- on_rightclick[11] ................................. | 561 | 2733 | 1097 | 0.3 | 25.4 | 2.7
- on_punch[43] ...................................... | 110 | 797 | 314 | 1.0 | 19.9 | 6.8
- on_punch[9] ....................................... | 139 | 514 | 306 | 0.7 | 3.5 | 2.1
- get_staticdata[41] ................................ | 30 | 956 | 142 | 0.0 | 5.1 | 0.6
- on_item_eat[1] .................................... | 4 | 245 | 10 | 0.0 | 8.6 | 0.3
- on_activate[10] ................................... | 72 | 581 | 212 | 0.1 | 9.0 | 2.0
- on_leaveplayer[2] ................................. | 2 | 29 | 7 | 0.0 | 0.2 | 0.1
- on_step[14] ....................................... | 53 | 1071 | 231 | 0.1 | 2.3 | 0.5
- get_staticdata[4] ................................. | 28 | 1428 | 147 | 0.0 | 10.0 | 1.2
- get_staticdata[33] ................................ | 50 | 50 | 50 | 1.1 | 1.1 | 1.1
- on_step[11] ....................................... | 35 | 11913 | 205 | 0.0 | 72.0 | 1.9
- on_activate[5] .................................... | 69 | 9587 | 492 | 0.1 | 11.9 | 1.3
- get_staticdata[24] ................................ | 55 | 6342 | 841 | 0.1 | 26.6 | 2.3
- on_step[36] ....................................... | 30 | 1540 | 179 | 0.1 | 30.9 | 2.9
- on_leaveplayer[4] ................................. | 2 | 3 | 2 | 0.0 | 0.1 | 0.0
- on_step[6] ........................................ | 33 | 30414 | 401 | 0.0 | 97.2 | 3.0
- on_step[23] ....................................... | 30 | 24334 | 251 | 0.1 | 87.1 | 6.7
- on_activate[11] ................................... | 84 | 1397 | 300 | 0.0 | 8.4 | 1.1
- get_staticdata[42] ................................ | 23 | 2873 | 168 | 0.0 | 12.0 | 1.3
- on_activate[36] ................................... | 146 | 146 | 146 | 1.7 | 4.3 | 3.0
- on_activate[23] ................................... | 79 | 1224 | 319 | 0.1 | 12.5 | 2.6
- on_step[8] ........................................ | 34 | 31864 | 354 | 0.0 | 82.6 | 2.7
- on_activate[45] ................................... | 62 | 1406 | 243 | 0.1 | 18.7 | 1.7
- on_step[34] ....................................... | 41 | 1329 | 285 | 0.4 | 22.4 | 6.1
- get_staticdata[31] ................................ | 57 | 339 | 160 | 1.0 | 3.8 | 2.2
- on_step[9] ........................................ | 32 | 15704 | 322 | 0.0 | 76.0 | 2.1
- on_step[18] ....................................... | 41 | 21801 | 377 | 0.0 | 68.2 | 2.5
- get_staticdata[25] ................................ | 26 | 1994 | 214 | 0.0 | 21.1 | 1.5
- on_step[37] ....................................... | 32 | 35696 | 237 | 0.0 | 95.2 | 3.6
- on_activate[20] ................................... | 71 | 1289 | 260 | 0.0 | 17.1 | 1.8
- on_joinplayer[1] .................................. | 4 | 10 | 6 | 0.0 | 0.0 | 0.0
- on_activate[9] .................................... | 74 | 1146 | 252 | 0.1 | 9.4 | 1.0
- on_activate[18] ................................... | 88 | 2659 | 414 | 0.1 | 20.3 | 1.8
- on_player_receive_fields[1] ....................... | 1 | 50 | 1 | 0.0 | 0.2 | 0.0
- on_step[27] ....................................... | 40 | 56735 | 1148 | 0.0 | 98.1 | 6.9
- on_activate[44] ................................... | 58 | 2561 | 285 | 0.0 | 19.2 | 1.3
- get_staticdata[17] ................................ | 22 | 2768 | 198 | 0.0 | 19.5 | 1.4
- get_staticdata[15] ................................ | 43 | 6283 | 319 | 0.0 | 15.4 | 1.2
- on_step[29] ....................................... | 28 | 36768 | 221 | 0.0 | 91.2 | 3.3
- on_activate[8] .................................... | 90 | 1320 | 272 | 0.1 | 36.9 | 2.0
- on_activate[25] ................................... | 69 | 1119 | 238 | 0.0 | 16.6 | 1.4
- on_activate[7] .................................... | 65 | 3384 | 269 | 0.1 | 7.9 | 1.6
- get_staticdata[26] ................................ | 21 | 1672 | 153 | 0.0 | 13.0 | 1.5
- globalstep[1] ..................................... | 1 | 11964 | 6 | 0.0 | 59.3 | 0.2
- on_punch[36] ...................................... | 219 | 219 | 219 | 3.7 | 3.7 | 3.7
- on_step[28] ....................................... | 44 | 24829 | 486 | 0.0 | 64.6 | 2.6
- get_staticdata[6] ................................. | 29 | 9225 | 223 | 0.0 | 56.0 | 0.9
- on_player_hpchange[1] ............................. | 1 | 132 | 3 | 0.0 | 4.4 | 0.1
- on_player_receive_fields[6] ....................... | 1 | 91 | 1 | 0.0 | 0.7 | 0.0
- on_step[24] ....................................... | 33 | 7169 | 224 | 0.0 | 51.3 | 2.1
- on_step[10] ....................................... | 36 | 10322 | 188 | 0.0 | 69.4 | 3.2
- get_staticdata[10] ................................ | 62 | 3753 | 295 | 0.0 | 17.5 | 2.4
- on_activate[47] ................................... | 73 | 1622 | 281 | 0.0 | 36.2 | 2.5
- get_staticdata[43] ................................ | 34 | 1269 | 207 | 0.0 | 9.9 | 1.1
- on_activate[6] .................................... | 69 | 3045 | 378 | 0.0 | 2.8 | 0.7
- ABM[4] ............................................ | 4593 | 17659 | 9065 | 12.8 | 25.3 | 18.5
- on_step[46] ....................................... | 32 | 52802 | 301 | 0.0 | 85.2 | 3.9
- on_activate[30] ................................... | 61 | 1014 | 223 | 0.0 | 23.1 | 2.5
- globalstep[2] ..................................... | 1 | 4383 | 2 | 0.0 | 88.9 | 0.1
- on_punchplayer[2] ................................. | 1 | 119 | 4 | 0.0 | 1.6 | 0.1
- on_step[5] ........................................ | 41 | 41873 | 469 | 0.0 | 90.9 | 12.1
- on_step[32] ....................................... | 38 | 13994 | 237 | 0.0 | 49.9 | 3.2
- on_step[13] ....................................... | 41 | 53122 | 263 | 0.0 | 86.9 | 4.2
- on_step[7] ........................................ | 37 | 23122 | 548 | 0.1 | 74.4 | 3.5
- on_activate[17] ................................... | 90 | 1026 | 241 | 0.0 | 8.1 | 0.6
- on_activate[46] ................................... | 76 | 10201 | 469 | 0.1 | 47.1 | 1.9
- get_staticdata[11] ................................ | 46 | 100 | 73 | 0.2 | 0.4 | 0.3
- on_player_receive_fields[7] ....................... | 1 | 102 | 1 | 0.0 | 0.5 | 0.0
- get_staticdata[40] ................................ | 25 | 8246 | 199 | 0.0 | 45.9 | 1.4
- get_staticdata[39] ................................ | 24 | 2637 | 226 | 0.0 | 13.0 | 0.9
- get_staticdata[14] ................................ | 41 | 1017 | 192 | 0.0 | 9.6 | 0.6
- on_step[22] ....................................... | 50 | 2170 | 342 | 0.0 | 6.4 | 0.6
- get_staticdata[28] ................................ | 22 | 3287 | 180 | 0.0 | 16.7 | 0.8
- on_punch[27] ...................................... | 24 | 557 | 232 | 0.0 | 0.7 | 0.3
- on_activate[33] ................................... | 64 | 4831 | 257 | 0.0 | 12.4 | 1.2
- get_staticdata[8] ................................. | 39 | 9177 | 285 | 0.0 | 23.7 | 1.2
- get_staticdata[27] ................................ | 26 | 1116 | 117 | 0.0 | 13.2 | 1.1
- on_step[20] ....................................... | 37 | 21685 | 224 | 0.0 | 86.0 | 2.6
- on_activate[29] ................................... | 65 | 2258 | 326 | 0.1 | 25.2 | 2.6
- get_staticdata[21] ................................ | 25 | 691 | 143 | 0.0 | 10.0 | 0.8
- get_staticdata[20] ................................ | 28 | 1134 | 226 | 0.1 | 13.8 | 1.5
- on_activate[22] ................................... | 119 | 491 | 283 | 0.2 | 1.6 | 0.7
- on_player_receive_fields[4] ....................... | 1 | 78 | 1 | 0.0 | 0.6 | 0.0
Bastrabun wrote: ↑Fri Aug 07, 2020 22:20by Bastrabun » Fri Aug 07, 2020 22:20
is there a way to tune down the enormous lag petz produces when players emerge new blocks? It's not too bad when you have 30 petz somewhere in a cage, but as soon as players go scouting the area, petz creates a lot of lag. (Same goes for waterlife, so maybe a mobkit thing?)
All I can do is relay the profiler saves to you or disable petz :-( In this example petz created 2.5 seconds of lag and I already made the spawning check not run every server step but only every second
I do not understand with players scouting. What do you mean?Bastrabun wrote: ↑Fri Aug 07, 2020 22:20is there a way to tune down the enormous lag petz produces when players emerge new blocks? It's not too bad when you have 30 petz somewhere in a cage, but as soon as players go scouting the area, petz creates a lot of lag. (Same goes for waterlife, so maybe a mobkit thing?)
All I can do is relay the profiler saves to you or disable petz :-( In this example petz created 2.5 seconds of lag and I already made the spawning check not run every server step but only every second
Code: Select all
petz: | 2 | 181552 | 2556 | 0.0 | 98.9 | 30.0 - on_activate[39] ................................... | 64 | 1240 | 192 | 0.0 | 20.8 | 1.5 - on_leaveplayer[3] ................................. | 2 | 3 | 2 | 0.0 | 0.1 | 0.0 - on_step[44] ....................................... | 37 | 41750 | 196 | 0.0 | 90.7 | 5.0 - on_activate[32] ................................... | 68 | 814 | 187 | 0.0 | 8.8 | 1.6 - get_staticdata[19] ................................ | 93 | 894 | 268 | 0.2 | 1.6 | 0.5 - on_player_receive_fields[5] ....................... | 1 | 85 | 1 | 0.0 | 3.7 | 0.0 - on_activate[16] ................................... | 69 | 281 | 148 | 0.0 | 3.5 | 1.1 - on_rightclick[42] ................................. | 332 | 5343 | 835 | 0.4 | 8.2 | 1.9 - get_staticdata[12] ................................ | 23 | 2655 | 169 | 0.0 | 12.1 | 0.8 - get_staticdata[34] ................................ | 24 | 1303 | 123 | 0.0 | 12.0 | 0.8 - get_staticdata[5] ................................. | 49 | 1622 | 206 | 0.0 | 18.8 | 1.2 - on_player_receive_fields[2] ....................... | 1 | 114 | 2 | 0.0 | 1.4 | 0.0 - on_step[45] ....................................... | 38 | 26012 | 284 | 0.0 | 79.6 | 4.9 - get_staticdata[29] ................................ | 23 | 749 | 167 | 0.1 | 10.0 | 1.3 - get_staticdata[13] ................................ | 25 | 329 | 88 | 0.0 | 3.1 | 0.5 - on_step[16] ....................................... | 33 | 11464 | 174 | 0.0 | 44.8 | 2.2 - on_punchplayer[1] ................................. | 2 | 128 | 13 | 0.0 | 2.0 | 0.2 - on_activate[28] ................................... | 103 | 10545 | 1478 | 0.1 | 21.6 | 3.9 - on_step[42] ....................................... | 37 | 17485 | 212 | 0.0 | 86.3 | 4.3 - on_step[31] ....................................... | 28 | 21535 | 300 | 0.0 | 85.7 | 2.4 - on_activate[38] ................................... | 121 | 121 | 121 | 2.7 | 2.7 | 2.7 - on_activate[15] ................................... | 65 | 4085 | 285 | 0.0 | 21.1 | 1.4 - on_activate[14] ................................... | 188 | 188 | 188 | 0.7 | 0.7 | 0.7 - get_staticdata[2] ................................. | 27 | 1824 | 234 | 0.0 | 15.9 | 0.8 - on_leaveplayer[1] ................................. | 2 | 3 | 2 | 0.0 | 0.1 | 0.0 - on_rightclick[22] ................................. | 1868 | 1868 | 1868 | 5.1 | 5.1 | 5.1 - on_activate[34] ................................... | 71 | 358 | 194 | 0.2 | 6.4 | 1.7 - on_activate[13] ................................... | 100 | 2341 | 426 | 0.0 | 13.0 | 3.2 - on_player_receive_fields[3] ....................... | 1 | 107 | 1 | 0.0 | 1.0 | 0.0 - on_step[17] ....................................... | 37 | 21792 | 251 | 0.0 | 76.8 | 3.0 - get_staticdata[7] ................................. | 27 | 405 | 129 | 0.0 | 6.4 | 1.0 - on_step[15] ....................................... | 33 | 86399 | 2052 | 0.0 | 90.3 | 7.6 - on_step[43] ....................................... | 30 | 36340 | 306 | 0.0 | 95.3 | 5.6 - on_step[30] ....................................... | 31 | 13614 | 189 | 0.0 | 88.2 | 3.9 - get_staticdata[3] ................................. | 29 | 1261 | 173 | 0.0 | 10.5 | 0.4 - on_activate[48] ................................... | 80 | 938 | 274 | 0.1 | 13.9 | 1.7 - ABM[3] ............................................ | 996 | 3050 | 1757 | 2.1 | 7.9 | 4.1 - on_rightclick[11] ................................. | 561 | 2733 | 1097 | 0.3 | 25.4 | 2.7 - on_punch[43] ...................................... | 110 | 797 | 314 | 1.0 | 19.9 | 6.8 - on_punch[9] ....................................... | 139 | 514 | 306 | 0.7 | 3.5 | 2.1 - get_staticdata[41] ................................ | 30 | 956 | 142 | 0.0 | 5.1 | 0.6 - on_item_eat[1] .................................... | 4 | 245 | 10 | 0.0 | 8.6 | 0.3 - on_activate[10] ................................... | 72 | 581 | 212 | 0.1 | 9.0 | 2.0 - on_leaveplayer[2] ................................. | 2 | 29 | 7 | 0.0 | 0.2 | 0.1 - on_step[14] ....................................... | 53 | 1071 | 231 | 0.1 | 2.3 | 0.5 - get_staticdata[4] ................................. | 28 | 1428 | 147 | 0.0 | 10.0 | 1.2 - get_staticdata[33] ................................ | 50 | 50 | 50 | 1.1 | 1.1 | 1.1 - on_step[11] ....................................... | 35 | 11913 | 205 | 0.0 | 72.0 | 1.9 - on_activate[5] .................................... | 69 | 9587 | 492 | 0.1 | 11.9 | 1.3 - get_staticdata[24] ................................ | 55 | 6342 | 841 | 0.1 | 26.6 | 2.3 - on_step[36] ....................................... | 30 | 1540 | 179 | 0.1 | 30.9 | 2.9 - on_leaveplayer[4] ................................. | 2 | 3 | 2 | 0.0 | 0.1 | 0.0 - on_step[6] ........................................ | 33 | 30414 | 401 | 0.0 | 97.2 | 3.0 - on_step[23] ....................................... | 30 | 24334 | 251 | 0.1 | 87.1 | 6.7 - on_activate[11] ................................... | 84 | 1397 | 300 | 0.0 | 8.4 | 1.1 - get_staticdata[42] ................................ | 23 | 2873 | 168 | 0.0 | 12.0 | 1.3 - on_activate[36] ................................... | 146 | 146 | 146 | 1.7 | 4.3 | 3.0 - on_activate[23] ................................... | 79 | 1224 | 319 | 0.1 | 12.5 | 2.6 - on_step[8] ........................................ | 34 | 31864 | 354 | 0.0 | 82.6 | 2.7 - on_activate[45] ................................... | 62 | 1406 | 243 | 0.1 | 18.7 | 1.7 - on_step[34] ....................................... | 41 | 1329 | 285 | 0.4 | 22.4 | 6.1 - get_staticdata[31] ................................ | 57 | 339 | 160 | 1.0 | 3.8 | 2.2 - on_step[9] ........................................ | 32 | 15704 | 322 | 0.0 | 76.0 | 2.1 - on_step[18] ....................................... | 41 | 21801 | 377 | 0.0 | 68.2 | 2.5 - get_staticdata[25] ................................ | 26 | 1994 | 214 | 0.0 | 21.1 | 1.5 - on_step[37] ....................................... | 32 | 35696 | 237 | 0.0 | 95.2 | 3.6 - on_activate[20] ................................... | 71 | 1289 | 260 | 0.0 | 17.1 | 1.8 - on_joinplayer[1] .................................. | 4 | 10 | 6 | 0.0 | 0.0 | 0.0 - on_activate[9] .................................... | 74 | 1146 | 252 | 0.1 | 9.4 | 1.0 - on_activate[18] ................................... | 88 | 2659 | 414 | 0.1 | 20.3 | 1.8 - on_player_receive_fields[1] ....................... | 1 | 50 | 1 | 0.0 | 0.2 | 0.0 - on_step[27] ....................................... | 40 | 56735 | 1148 | 0.0 | 98.1 | 6.9 - on_activate[44] ................................... | 58 | 2561 | 285 | 0.0 | 19.2 | 1.3 - get_staticdata[17] ................................ | 22 | 2768 | 198 | 0.0 | 19.5 | 1.4 - get_staticdata[15] ................................ | 43 | 6283 | 319 | 0.0 | 15.4 | 1.2 - on_step[29] ....................................... | 28 | 36768 | 221 | 0.0 | 91.2 | 3.3 - on_activate[8] .................................... | 90 | 1320 | 272 | 0.1 | 36.9 | 2.0 - on_activate[25] ................................... | 69 | 1119 | 238 | 0.0 | 16.6 | 1.4 - on_activate[7] .................................... | 65 | 3384 | 269 | 0.1 | 7.9 | 1.6 - get_staticdata[26] ................................ | 21 | 1672 | 153 | 0.0 | 13.0 | 1.5 - globalstep[1] ..................................... | 1 | 11964 | 6 | 0.0 | 59.3 | 0.2 - on_punch[36] ...................................... | 219 | 219 | 219 | 3.7 | 3.7 | 3.7 - on_step[28] ....................................... | 44 | 24829 | 486 | 0.0 | 64.6 | 2.6 - get_staticdata[6] ................................. | 29 | 9225 | 223 | 0.0 | 56.0 | 0.9 - on_player_hpchange[1] ............................. | 1 | 132 | 3 | 0.0 | 4.4 | 0.1 - on_player_receive_fields[6] ....................... | 1 | 91 | 1 | 0.0 | 0.7 | 0.0 - on_step[24] ....................................... | 33 | 7169 | 224 | 0.0 | 51.3 | 2.1 - on_step[10] ....................................... | 36 | 10322 | 188 | 0.0 | 69.4 | 3.2 - get_staticdata[10] ................................ | 62 | 3753 | 295 | 0.0 | 17.5 | 2.4 - on_activate[47] ................................... | 73 | 1622 | 281 | 0.0 | 36.2 | 2.5 - get_staticdata[43] ................................ | 34 | 1269 | 207 | 0.0 | 9.9 | 1.1 - on_activate[6] .................................... | 69 | 3045 | 378 | 0.0 | 2.8 | 0.7 - ABM[4] ............................................ | 4593 | 17659 | 9065 | 12.8 | 25.3 | 18.5 - on_step[46] ....................................... | 32 | 52802 | 301 | 0.0 | 85.2 | 3.9 - on_activate[30] ................................... | 61 | 1014 | 223 | 0.0 | 23.1 | 2.5 - globalstep[2] ..................................... | 1 | 4383 | 2 | 0.0 | 88.9 | 0.1 - on_punchplayer[2] ................................. | 1 | 119 | 4 | 0.0 | 1.6 | 0.1 - on_step[5] ........................................ | 41 | 41873 | 469 | 0.0 | 90.9 | 12.1 - on_step[32] ....................................... | 38 | 13994 | 237 | 0.0 | 49.9 | 3.2 - on_step[13] ....................................... | 41 | 53122 | 263 | 0.0 | 86.9 | 4.2 - on_step[7] ........................................ | 37 | 23122 | 548 | 0.1 | 74.4 | 3.5 - on_activate[17] ................................... | 90 | 1026 | 241 | 0.0 | 8.1 | 0.6 - on_activate[46] ................................... | 76 | 10201 | 469 | 0.1 | 47.1 | 1.9 - get_staticdata[11] ................................ | 46 | 100 | 73 | 0.2 | 0.4 | 0.3 - on_player_receive_fields[7] ....................... | 1 | 102 | 1 | 0.0 | 0.5 | 0.0 - get_staticdata[40] ................................ | 25 | 8246 | 199 | 0.0 | 45.9 | 1.4 - get_staticdata[39] ................................ | 24 | 2637 | 226 | 0.0 | 13.0 | 0.9 - get_staticdata[14] ................................ | 41 | 1017 | 192 | 0.0 | 9.6 | 0.6 - on_step[22] ....................................... | 50 | 2170 | 342 | 0.0 | 6.4 | 0.6 - get_staticdata[28] ................................ | 22 | 3287 | 180 | 0.0 | 16.7 | 0.8 - on_punch[27] ...................................... | 24 | 557 | 232 | 0.0 | 0.7 | 0.3 - on_activate[33] ................................... | 64 | 4831 | 257 | 0.0 | 12.4 | 1.2 - get_staticdata[8] ................................. | 39 | 9177 | 285 | 0.0 | 23.7 | 1.2 - get_staticdata[27] ................................ | 26 | 1116 | 117 | 0.0 | 13.2 | 1.1 - on_step[20] ....................................... | 37 | 21685 | 224 | 0.0 | 86.0 | 2.6 - on_activate[29] ................................... | 65 | 2258 | 326 | 0.1 | 25.2 | 2.6 - get_staticdata[21] ................................ | 25 | 691 | 143 | 0.0 | 10.0 | 0.8 - get_staticdata[20] ................................ | 28 | 1134 | 226 | 0.1 | 13.8 | 1.5 - on_activate[22] ................................... | 119 | 491 | 283 | 0.2 | 1.6 | 0.7 - on_player_receive_fields[4] ....................... | 1 | 78 | 1 | 0.0 | 0.6 | 0.0
In those blocks are petz? How do you know that it is caused by petz?
Minigame is not related with Petz, but it may indicate that if the server is overloaded, the rest will go wrong.Bastrabun wrote: ↑Sat Aug 08, 2020 10:51I know it because when I disable petz on my testserver that runs on the same machine and do what a player did before, I can compare(*). Lag with petz, less lag without. Take a look at the 4th columen of the profiler. The more, the worse. Some on_rightclick take a lot of time, some ABM does, some on_activate
Also the profiler says in the first line avg 2556, that's the avg computing time in ms this mod uses as far as I understood.
(*) more or less, I cannot reproduce exactly, but when he gets lag when playing a minigame, I also play the minigame. Or when he goes exploring the countryside on the live server and gets lag, I also go there and then see what the profiler tells me. When I am online, I can also ask the player and see what the profiler says.
Maybe I am mistaken and I do not understand what the profiler tells me. Then there's still the method of "disable in testserver and do stuff". How do I measure "lag" (in fact CPU time as Gundul already pointed out)? There the /status command that gives me lagspikes, and I can see entities teleporting back and forth - especially dolphins in the ocean.
Await. Or try to decrease 'lay_egg_chance' in petz.conf.
does that apply to any type of pet? (like duck and cat)
Yes, for all tamable pet. :-)PumpkingPurrsson wrote: ↑Fri Aug 28, 2020 23:12does that apply to any type of pet? (like duck and cat)
Too much entities = lag, but not crash at all. Firstly would be better do investigate what/how/where is the problem. If Minetets crashes, the "debug.txt" file shows the point of the issue thru a error message.Ignaramico wrote: ↑Sun Sep 13, 2020 13:57Is possible to deactivate certain petz?, after using the mod my game crashes after playing 20 or so minutes, and i think is because of too many entities, and if i deactivate it the game runs as normal.
im using the game "minetest extended" for futher info
It wasnt a game crash, apparently my pc closed the game (maybe because of the lag or stuff), i changed the spawn of some mobs to 0 to help with the lag, and currently im playing without problemsruns wrote: ↑Sun Sep 13, 2020 19:37Too much entities = lag, but not crash at all. Firstly would be better do investigate what/how/where is the problem. If Minetets crashes, the "debug.txt" file shows the point of the issue thru a error message.Ignaramico wrote: ↑Sun Sep 13, 2020 13:57Is possible to deactivate certain petz?, after using the mod my game crashes after playing 20 or so minutes, and i think is because of too many entities, and if i deactivate it the game runs as normal.
im using the game "minetest extended" for futher info
PD: Petz is done for use with official MTG only.
What OS do you use? What PC specifications?Ignaramico wrote: ↑Mon Sep 14, 2020 21:43It wasnt a game crash, apparently my pc closed the game (maybe because of the lag or stuff), i changed the spawn of some mobs to 0 to help with the lag, and currently im playing without problemsruns wrote: ↑Sun Sep 13, 2020 19:37Too much entities = lag, but not crash at all. Firstly would be better do investigate what/how/where is the problem. If Minetets crashes, the "debug.txt" file shows the point of the issue thru a error message.Ignaramico wrote: ↑Sun Sep 13, 2020 13:57Is possible to deactivate certain petz?, after using the mod my game crashes after playing 20 or so minutes, and i think is because of too many entities, and if i deactivate it the game runs as normal.
im using the game "minetest extended" for futher info
PD: Petz is done for use with official MTG only.