Total Handle on a Map

~GaLs~

† Ғσſ ŧħə ѕαĸε Φƒ ~Ğ䣚~ †
Reaction score
180
JASS:
scope HandleMadeMapLag

globals
    private leaderboard HandProg 
    private timer t = CreateTimer()
    private integer HandNum = 0
endglobals

private function tAct takes nothing returns nothing
local timer t = CreateTimer()
call DestroyTimer(t)

set HandNum = HandNum + 1
call LeaderboardSetItemValue(HandProg,LeaderboardGetPlayerIndex(HandProg, Player(0)),HandNum)
call LeaderboardResizeBJ(HandProg)
endfunction

private function Trig_Test_How_much_Handle_Made_Map_lag_Actions takes nothing returns nothing
call TimerStart(t,.001,true,function tAct)
set HandProg = CreateLeaderboard()
call LeaderboardSetLabel(HandProg,"Handle Creating Progress")
call LeaderboardResizeBJ(HandProg)
call PlayerSetLeaderboard(Player(0),HandProg)
call LeaderboardDisplay(HandProg,true)
call LeaderboardSetStyle(HandProg,true,true,true,true)
call LeaderboardAddItem(HandProg,"Handle Created", HandNum, Player(0))
endfunction

//===========================================================================
function InitTrig_Test_HandleLag takes nothing returns nothing
    set gg_trg_Test_HandleLag = CreateTrigger()
    call TriggerAddAction( gg_trg_Test_HandleLag, function Trig_Test_How_much_Handle_Made_Map_lag_Actions )
    call TriggerRegisterTimerEvent(gg_trg_Test_HandleLag,1,false)
endfunction

endscope

With this code, I don't even get a bit of lag even after 18190...
 

Cohadar

master of fugue
Reaction score
209
JASS:
//==============================================================================
//  JERK - handle leak test by Cohadar
//
//  PURPOUSE:
//  	* Testing how handle increase affects the lag
//      * This test is not leaking objects, only handles
//
//  HOW TO IMPORT:
//       * Just create a trigger named Jerk
//         convert it to text and replace the whole trigger text with this one
//       * type -jerk in game to start the test.
//       * type -off in game to pause the test.
//==============================================================================
//! textmacro TEST takes NUMBER
globals
    private location array L$NUMBER$
endglobals 

//==============================================================================
private function FillL$NUMBER$ takes nothing returns nothing
    local integer i = 0
	loop
		exitwhen i >= TEST_SIZE
		set L$NUMBER$<i> = GetRandomLocInRect(GetPlayableMapRect())
        call RemoveLocation(L$NUMBER$<i>)
		set i = i + 1
	endloop
	//call BJDebugMsg(&quot;Last Handle Index: &quot; + I2S(H2I(L$NUMBER$[TEST_SIZE-1])-0x100000))
endfunction

//! endtextmacro

//==============================================================================
scope Jerk

globals
    private constant integer TEST_SIZE = 4096 // 8192 causes op limit break
    private timer Timer = null
    private integer Counter = 0
endglobals

//! runtextmacro TEST(&quot;0&quot;)
//! runtextmacro TEST(&quot;1&quot;)
//! runtextmacro TEST(&quot;2&quot;)
//! runtextmacro TEST(&quot;3&quot;)
//! runtextmacro TEST(&quot;4&quot;)
//! runtextmacro TEST(&quot;5&quot;)
//! runtextmacro TEST(&quot;6&quot;)
//! runtextmacro TEST(&quot;7&quot;)
//! runtextmacro TEST(&quot;8&quot;)
//! runtextmacro TEST(&quot;9&quot;)

//! runtextmacro TEST(&quot;10&quot;)
//! runtextmacro TEST(&quot;11&quot;)
//! runtextmacro TEST(&quot;12&quot;)
//! runtextmacro TEST(&quot;13&quot;)
//! runtextmacro TEST(&quot;14&quot;)
//! runtextmacro TEST(&quot;15&quot;)
//! runtextmacro TEST(&quot;16&quot;)
//! runtextmacro TEST(&quot;17&quot;)
//! runtextmacro TEST(&quot;18&quot;)
//! runtextmacro TEST(&quot;19&quot;)

//! runtextmacro TEST(&quot;20&quot;)
//! runtextmacro TEST(&quot;21&quot;)
//! runtextmacro TEST(&quot;22&quot;)
//! runtextmacro TEST(&quot;23&quot;)
//! runtextmacro TEST(&quot;24&quot;)
//! runtextmacro TEST(&quot;25&quot;)
//! runtextmacro TEST(&quot;26&quot;)
//! runtextmacro TEST(&quot;27&quot;)
//! runtextmacro TEST(&quot;28&quot;)
//! runtextmacro TEST(&quot;29&quot;)

//! runtextmacro TEST(&quot;30&quot;)
//! runtextmacro TEST(&quot;31&quot;)
//! runtextmacro TEST(&quot;32&quot;)
//! runtextmacro TEST(&quot;33&quot;)
//! runtextmacro TEST(&quot;34&quot;)
//! runtextmacro TEST(&quot;35&quot;)
//! runtextmacro TEST(&quot;36&quot;)
//! runtextmacro TEST(&quot;37&quot;)
//! runtextmacro TEST(&quot;38&quot;)
//! runtextmacro TEST(&quot;39&quot;)

//! runtextmacro TEST(&quot;40&quot;)
//! runtextmacro TEST(&quot;41&quot;)
//! runtextmacro TEST(&quot;42&quot;)
//! runtextmacro TEST(&quot;43&quot;)
//! runtextmacro TEST(&quot;44&quot;)
//! runtextmacro TEST(&quot;45&quot;)
//! runtextmacro TEST(&quot;46&quot;)
//! runtextmacro TEST(&quot;47&quot;)
//! runtextmacro TEST(&quot;48&quot;)
//! runtextmacro TEST(&quot;49&quot;)

//! runtextmacro TEST(&quot;50&quot;)
//! runtextmacro TEST(&quot;51&quot;)
//! runtextmacro TEST(&quot;52&quot;)
//! runtextmacro TEST(&quot;53&quot;)
//! runtextmacro TEST(&quot;54&quot;)
//! runtextmacro TEST(&quot;55&quot;)
//! runtextmacro TEST(&quot;56&quot;)
//! runtextmacro TEST(&quot;57&quot;)
//! runtextmacro TEST(&quot;58&quot;)
//! runtextmacro TEST(&quot;59&quot;)

//! runtextmacro TEST(&quot;60&quot;)
//! runtextmacro TEST(&quot;61&quot;)
//! runtextmacro TEST(&quot;62&quot;)
//! runtextmacro TEST(&quot;63&quot;)
//! runtextmacro TEST(&quot;64&quot;)
//! runtextmacro TEST(&quot;65&quot;)
//! runtextmacro TEST(&quot;66&quot;)
//! runtextmacro TEST(&quot;67&quot;)
//! runtextmacro TEST(&quot;68&quot;)
//! runtextmacro TEST(&quot;69&quot;)

//! runtextmacro TEST(&quot;70&quot;)
//! runtextmacro TEST(&quot;71&quot;)
//! runtextmacro TEST(&quot;72&quot;)
//! runtextmacro TEST(&quot;73&quot;)
//! runtextmacro TEST(&quot;74&quot;)
//! runtextmacro TEST(&quot;75&quot;)
//! runtextmacro TEST(&quot;76&quot;)
//! runtextmacro TEST(&quot;77&quot;)
//! runtextmacro TEST(&quot;78&quot;)
//! runtextmacro TEST(&quot;79&quot;)

//! runtextmacro TEST(&quot;80&quot;)
//! runtextmacro TEST(&quot;81&quot;)
//! runtextmacro TEST(&quot;82&quot;)
//! runtextmacro TEST(&quot;83&quot;)
//! runtextmacro TEST(&quot;84&quot;)
//! runtextmacro TEST(&quot;85&quot;)
//! runtextmacro TEST(&quot;86&quot;)
//! runtextmacro TEST(&quot;87&quot;)
//! runtextmacro TEST(&quot;88&quot;)
//! runtextmacro TEST(&quot;89&quot;)

//! runtextmacro TEST(&quot;90&quot;)
//! runtextmacro TEST(&quot;91&quot;)
//! runtextmacro TEST(&quot;92&quot;)
//! runtextmacro TEST(&quot;93&quot;)
//! runtextmacro TEST(&quot;94&quot;)
//! runtextmacro TEST(&quot;95&quot;)
//! runtextmacro TEST(&quot;96&quot;)
//! runtextmacro TEST(&quot;97&quot;)
//! runtextmacro TEST(&quot;98&quot;)
//! runtextmacro TEST(&quot;99&quot;)

//===========================//

//! runtextmacro TEST(&quot;100&quot;)
//! runtextmacro TEST(&quot;101&quot;)
//! runtextmacro TEST(&quot;102&quot;)
//! runtextmacro TEST(&quot;103&quot;)
//! runtextmacro TEST(&quot;104&quot;)
//! runtextmacro TEST(&quot;105&quot;)
//! runtextmacro TEST(&quot;106&quot;)
//! runtextmacro TEST(&quot;107&quot;)
//! runtextmacro TEST(&quot;108&quot;)
//! runtextmacro TEST(&quot;109&quot;)

//! runtextmacro TEST(&quot;110&quot;)
//! runtextmacro TEST(&quot;111&quot;)
//! runtextmacro TEST(&quot;112&quot;)
//! runtextmacro TEST(&quot;113&quot;)
//! runtextmacro TEST(&quot;114&quot;)
//! runtextmacro TEST(&quot;115&quot;)
//! runtextmacro TEST(&quot;116&quot;)
//! runtextmacro TEST(&quot;117&quot;)
//! runtextmacro TEST(&quot;118&quot;)
//! runtextmacro TEST(&quot;119&quot;)

//! runtextmacro TEST(&quot;120&quot;)
//! runtextmacro TEST(&quot;121&quot;)
//! runtextmacro TEST(&quot;122&quot;)
//! runtextmacro TEST(&quot;123&quot;)
//! runtextmacro TEST(&quot;124&quot;)
//! runtextmacro TEST(&quot;125&quot;)
//! runtextmacro TEST(&quot;126&quot;)
//! runtextmacro TEST(&quot;127&quot;)
//! runtextmacro TEST(&quot;128&quot;)
//! runtextmacro TEST(&quot;129&quot;)

//! runtextmacro TEST(&quot;130&quot;)
//! runtextmacro TEST(&quot;131&quot;)
//! runtextmacro TEST(&quot;132&quot;)
//! runtextmacro TEST(&quot;133&quot;)
//! runtextmacro TEST(&quot;134&quot;)
//! runtextmacro TEST(&quot;135&quot;)
//! runtextmacro TEST(&quot;136&quot;)
//! runtextmacro TEST(&quot;137&quot;)
//! runtextmacro TEST(&quot;138&quot;)
//! runtextmacro TEST(&quot;139&quot;)

//! runtextmacro TEST(&quot;140&quot;)
//! runtextmacro TEST(&quot;141&quot;)
//! runtextmacro TEST(&quot;142&quot;)
//! runtextmacro TEST(&quot;143&quot;)
//! runtextmacro TEST(&quot;144&quot;)
//! runtextmacro TEST(&quot;145&quot;)
//! runtextmacro TEST(&quot;146&quot;)
//! runtextmacro TEST(&quot;147&quot;)
//! runtextmacro TEST(&quot;148&quot;)
//! runtextmacro TEST(&quot;149&quot;)

//! runtextmacro TEST(&quot;150&quot;)
//! runtextmacro TEST(&quot;151&quot;)
//! runtextmacro TEST(&quot;152&quot;)
//! runtextmacro TEST(&quot;153&quot;)
//! runtextmacro TEST(&quot;154&quot;)
//! runtextmacro TEST(&quot;155&quot;)
//! runtextmacro TEST(&quot;156&quot;)
//! runtextmacro TEST(&quot;157&quot;)
//! runtextmacro TEST(&quot;158&quot;)
//! runtextmacro TEST(&quot;159&quot;)

//! runtextmacro TEST(&quot;160&quot;)
//! runtextmacro TEST(&quot;161&quot;)
//! runtextmacro TEST(&quot;162&quot;)
//! runtextmacro TEST(&quot;163&quot;)
//! runtextmacro TEST(&quot;164&quot;)
//! runtextmacro TEST(&quot;165&quot;)
//! runtextmacro TEST(&quot;166&quot;)
//! runtextmacro TEST(&quot;167&quot;)
//! runtextmacro TEST(&quot;168&quot;)
//! runtextmacro TEST(&quot;169&quot;)

//! runtextmacro TEST(&quot;170&quot;)
//! runtextmacro TEST(&quot;171&quot;)
//! runtextmacro TEST(&quot;172&quot;)
//! runtextmacro TEST(&quot;173&quot;)
//! runtextmacro TEST(&quot;174&quot;)
//! runtextmacro TEST(&quot;175&quot;)
//! runtextmacro TEST(&quot;176&quot;)
//! runtextmacro TEST(&quot;177&quot;)
//! runtextmacro TEST(&quot;178&quot;)
//! runtextmacro TEST(&quot;179&quot;)

//! runtextmacro TEST(&quot;180&quot;)
//! runtextmacro TEST(&quot;181&quot;)
//! runtextmacro TEST(&quot;182&quot;)
//! runtextmacro TEST(&quot;183&quot;)
//! runtextmacro TEST(&quot;184&quot;)
//! runtextmacro TEST(&quot;185&quot;)
//! runtextmacro TEST(&quot;186&quot;)
//! runtextmacro TEST(&quot;187&quot;)
//! runtextmacro TEST(&quot;188&quot;)
//! runtextmacro TEST(&quot;189&quot;)

//! runtextmacro TEST(&quot;190&quot;)
//! runtextmacro TEST(&quot;191&quot;)
//! runtextmacro TEST(&quot;192&quot;)
//! runtextmacro TEST(&quot;193&quot;)
//! runtextmacro TEST(&quot;194&quot;)
//! runtextmacro TEST(&quot;195&quot;)
//! runtextmacro TEST(&quot;196&quot;)
//! runtextmacro TEST(&quot;197&quot;)
//! runtextmacro TEST(&quot;198&quot;)
//! runtextmacro TEST(&quot;199&quot;)

//===========================//

//! runtextmacro TEST(&quot;200&quot;)
//! runtextmacro TEST(&quot;201&quot;)
//! runtextmacro TEST(&quot;202&quot;)
//! runtextmacro TEST(&quot;203&quot;)
//! runtextmacro TEST(&quot;204&quot;)
//! runtextmacro TEST(&quot;205&quot;)
//! runtextmacro TEST(&quot;206&quot;)
//! runtextmacro TEST(&quot;207&quot;)
//! runtextmacro TEST(&quot;208&quot;)
//! runtextmacro TEST(&quot;209&quot;)

//! runtextmacro TEST(&quot;210&quot;)
//! runtextmacro TEST(&quot;211&quot;)
//! runtextmacro TEST(&quot;212&quot;)
//! runtextmacro TEST(&quot;213&quot;)
//! runtextmacro TEST(&quot;214&quot;)
//! runtextmacro TEST(&quot;215&quot;)
//! runtextmacro TEST(&quot;216&quot;)
//! runtextmacro TEST(&quot;217&quot;)
//! runtextmacro TEST(&quot;218&quot;)
//! runtextmacro TEST(&quot;219&quot;)

//! runtextmacro TEST(&quot;220&quot;)
//! runtextmacro TEST(&quot;221&quot;)
//! runtextmacro TEST(&quot;222&quot;)
//! runtextmacro TEST(&quot;223&quot;)
//! runtextmacro TEST(&quot;224&quot;)
//! runtextmacro TEST(&quot;225&quot;)
//! runtextmacro TEST(&quot;226&quot;)
//! runtextmacro TEST(&quot;227&quot;)
//! runtextmacro TEST(&quot;228&quot;)
//! runtextmacro TEST(&quot;229&quot;)

//! runtextmacro TEST(&quot;230&quot;)
//! runtextmacro TEST(&quot;231&quot;)
//! runtextmacro TEST(&quot;232&quot;)
//! runtextmacro TEST(&quot;233&quot;)
//! runtextmacro TEST(&quot;234&quot;)
//! runtextmacro TEST(&quot;235&quot;)
//! runtextmacro TEST(&quot;236&quot;)
//! runtextmacro TEST(&quot;237&quot;)
//! runtextmacro TEST(&quot;238&quot;)
//! runtextmacro TEST(&quot;239&quot;)

//! runtextmacro TEST(&quot;240&quot;)
//! runtextmacro TEST(&quot;241&quot;)
//! runtextmacro TEST(&quot;242&quot;)
//! runtextmacro TEST(&quot;243&quot;)
//! runtextmacro TEST(&quot;244&quot;)
//! runtextmacro TEST(&quot;245&quot;)
//! runtextmacro TEST(&quot;246&quot;)
//! runtextmacro TEST(&quot;247&quot;)
//! runtextmacro TEST(&quot;248&quot;)
//! runtextmacro TEST(&quot;249&quot;)

//! runtextmacro TEST(&quot;250&quot;)
//! runtextmacro TEST(&quot;251&quot;)
//! runtextmacro TEST(&quot;252&quot;)
//! runtextmacro TEST(&quot;253&quot;)
//! runtextmacro TEST(&quot;254&quot;)
//! runtextmacro TEST(&quot;255&quot;)
//===========================//

//===========================================================================
private function TimerActions takes nothing returns nothing
    if Counter&lt;256 then
        call ExecuteFunc(SCOPE_PRIVATE+&quot;FillL&quot;+I2S(Counter))
		set Counter = Counter + 1
	else
        set Counter = 0
    endif
endfunction


//===========================================================================
private function JerkActions takes nothing returns nothing
    call BJDebugMsg(&quot;|c0000FF00STARTED&quot;)
    if Timer == null then
        set Timer = CreateTimer()
    endif

    call TimerStart(Timer, 0.5, true, function TimerActions)
endfunction

//===========================================================================
private function OffActions takes nothing returns nothing
	call BJDebugMsg(&quot;|c00FF0000PAUSED&quot;)
    call PauseTimer(Timer)
endfunction


//===========================================================================
public function InitTrig takes nothing returns nothing
    local trigger trig 
    
    set trig = CreateTrigger()
    call TriggerRegisterPlayerChatEvent( trig, Player(0), &quot;-jerk&quot;, true )
    call TriggerAddAction( trig, function JerkActions )
    
    set trig = CreateTrigger()
    call TriggerRegisterPlayerChatEvent( trig, Player(0), &quot;-off&quot;, true )
    call TriggerAddAction( trig, function OffActions )    
endfunction

endscope
</i></i>


JASS:
library HandleCounter initializer InitTrig

globals
    private leaderboard Leaderboard = null
    
    private integer MaxHandleIndex = 0
    private location loc
    
    string GAME_TIME_STRING = &quot;Game  Time:        &quot;
    
    // leaderboard dummy players
    private constant player LDP_TIME = Player(11)
    private constant player LDP_HNUM = Player(8)
    
    integer GAME_SECONDS = 0
    integer GAME_MINUTES = 0
    integer GAME_HOURS   = 0
endglobals

//===========================================================================
private function H2I takes handle h returns integer
    return h
    return 0
endfunction

//===========================================================================
private function LeaderboardTimeTick takes nothing returns nothing
    call LeaderboardSetPlayerItemLabelBJ( LDP_TIME, Leaderboard, GAME_TIME_STRING + I2S(GAME_HOURS) + &quot;:&quot; + I2S(GAME_MINUTES))
    call LeaderboardSetPlayerItemValueBJ( LDP_TIME, Leaderboard, GAME_SECONDS)
endfunction


//===========================================================================
private function Actions takes nothing returns nothing
    set Leaderboard = CreateLeaderboard()
    
    //call BJDebugMsg(&quot;Leaderboard Created&quot;)
    
    call LeaderboardSetLabel(Leaderboard, &quot;&quot;)
    call ForceSetLeaderboardBJ(Leaderboard, bj_FORCE_ALL_PLAYERS)

    call LeaderboardAddItemBJ( LDP_TIME, Leaderboard, GAME_TIME_STRING , 0 )    
    call LeaderboardAddItemBJ( LDP_HNUM, Leaderboard, &quot;Handle Count:&quot;, 0 )

    call LeaderboardSetPlayerItemLabelColorBJ( LDP_TIME, Leaderboard, 0xFF, 0xCC, 0x00, 0 )
    call LeaderboardSetPlayerItemValueColorBJ( LDP_TIME, Leaderboard, 0xFF, 0xCC, 0x00, 0 )

    call LeaderboardSetPlayerItemLabelColorBJ( LDP_HNUM, Leaderboard, 0xCC, 0x00, 0xFF, 0 )
    call LeaderboardSetPlayerItemValueColorBJ( LDP_HNUM, Leaderboard, 0xCC, 0x00, 0xFF, 0 )

    call LeaderboardDisplay(Leaderboard, true)
    call LeaderboardResizeBJ(Leaderboard)    

endfunction

//===========================================================================
private function UpdateHandleCount takes nothing returns nothing
    set loc = Location(0,0)
    set MaxHandleIndex = IMaxBJ(MaxHandleIndex, H2I(loc)-0x100000)
    call RemoveLocation(loc)
    call LeaderboardSetPlayerItemValueBJ( LDP_HNUM, Leaderboard, MaxHandleIndex )
endfunction

//===========================================================================
private function Tick takes nothing returns boolean
    set GAME_SECONDS = GAME_SECONDS + 1
    if GAME_SECONDS &gt;= 60 then
        set GAME_SECONDS = 0
        set GAME_MINUTES = GAME_MINUTES + 1
    endif
    if GAME_MINUTES &gt;= 60 then
        set GAME_MINUTES = 0
        set GAME_HOURS = GAME_HOURS + 1
    endif
  
    call LeaderboardTimeTick()
    return false    
endfunction

//===========================================================================
public function InitTrig takes nothing returns nothing
    local trigger trig = CreateTrigger()
    call TriggerRegisterTimerEventSingle( trig, 0.00 )
    call TriggerAddAction( trig, function Actions )

    set trig = CreateTrigger()
    call TriggerRegisterTimerEventPeriodic( trig, 1.00 )
    call TriggerAddCondition( trig, Condition(function Tick) )
    
    set trig = CreateTrigger()
    call TriggerRegisterTimerEventPeriodic( trig, 1.00 )
    call TriggerAddAction( trig, function UpdateHandleCount )  
endfunction

endlibrary
 

SFilip

Gone but not forgotten
Reaction score
634
> This will leak locations, but it will not leak any handles.
What are you talking about?
Code:
    loop
        set udg_loc = Location(0, 0)
        call BJDebugMsg(I2S(H2I(udg_loc)))
        call TriggerSleepAction(0.1)
    endloop
Always displays a different integer (the previous+1).
 

~GaLs~

† Ғσſ ŧħə ѕαĸε Φƒ ~Ğ䣚~ †
Reaction score
180
So what does your test work like? No leaderboard showing... no message showing hows the progress going on...

When I start the test, I just feel a bit a bit of lag, but no idea what is going on.

As you would say, read the code, but I am too noob to read your pro code. :/

>>> This will leak locations, but it will not leak any handles.
Locations?! no no, I want it to leak handles...
 

Cohadar

master of fugue
Reaction score
209
> This will leak locations, but it will not leak any handles.
What are you talking about?
Code:
    loop
        set udg_loc = Location(0, 0)
        call BJDebugMsg(I2S(H2I(udg_loc)))
        call TriggerSleepAction(0.1)
    endloop
Always displays a different integer (the previous+1).

Seems I was wrong.
So I guess you cannot leak objects without leaking handles,
but you can leak handles without leaking objects...


~Gals~ said:
So what does your test work like? No leaderboard showing... no message showing hows the progress going on...
You are using old jasshelper.

~Gals~ said:
>>> This will leak locations, but it will not leak any handles.
Locations?! no no, I want it to leak handles...
No wait, that is a separate stuff, it has nothing to do with big code I posted.
 

~GaLs~

† Ғσſ ŧħə ѕαĸε Φƒ ~Ğ䣚~ †
Reaction score
180
>>You are using old jasshelper.
False, I tried your code with 9.7 and 9.8. Same result.
 

Cohadar

master of fugue
Reaction score
209
Strange, I know for sure that it works on 0.9.9.7 because Karawasa is also using it in his map for testing...

So I guess it is your problem :p
 

~GaLs~

† Ғσſ ŧħə ѕαĸε Φƒ ~Ğ䣚~ †
Reaction score
180
>>So I guess it is your problem :p
So I won't be getting my answer in here, The Helper?
 

~GaLs~

† Ғσſ ŧħə ѕαĸε Φƒ ~Ğ䣚~ †
Reaction score
180
Okay, it work once I remove the public and rewrite the function name manually.

Now, I tried a combination of my trigger with handle count trigger. Handle count is increasing and ... surprizingly, not even lagging once it reach 60k...
 

Cohadar

master of fugue
Reaction score
209
What creates the lag is not the amount of handles.
You can have 10000000 handle leaks and still have no lag.

What creates lag is when you have a big handle index and then you try to cast a spell that temporarily creates a lot of handles.
(most 0.04 spells)
 

~GaLs~

† Ғσſ ŧħə ѕαĸε Φƒ ~Ğ䣚~ †
Reaction score
180
>>You can have 10000000 handle leaks and still have no lag.
Why don't you say that earlier?

>>What creates lag is when you have a big handle index and then you try to cast a spell that temporarily creates a lot of handles.
(most 0.04 spells)

Don't understand.
 

Cohadar

master of fugue
Reaction score
209
You don't need to understand.
Just don't leak anything and you will have no lag, simple as that.
 

emjlr3

Change can be a good thing
Reaction score
395
ever discern why Ele TD leaks so many handles? even when seemingly nothing is going on...
 

Cohadar

master of fugue
Reaction score
209
ever discern why Ele TD leaks so many handles? even when seemingly nothing is going on...

Well 80% of triggers there are GUI, what more do you need...

Btw I think I fixed that strange spawning bug.
He was using RemoveUnit 5 sec after unit dies (instead of using gameplay constants)

Using a wait in a creep dies function == a lot of sleeping threads as well.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +1
  • V-SNES V-SNES:
    Happy Friday!
    +1

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top