GameAnalytics / GA-SDK-ROBLOX

Repository for GameAnalytics Roblox SDK
MIT License
68 stars 45 forks source link

replace global spawn and wait with task library #102

Closed Baileyeatspizza closed 2 years ago

Baileyeatspizza commented 2 years ago

the task library offers better methods for spawning and waiting

the global spawn function has a small delay before executing on the task schedular task.spawn executes immediately on the task schedular. but stops executing after yielding

the global wait function runs on 30hz with a limit meaning It can scale with lag task.wait runs on heartbeats variable rate (normally 60hz) task.wait() with no arguments is equal to Runservice.Heartbeat:Wait()

I basically summed up the benefits. You can read more about the benefits of the task library here