ThreadPool

An asset by zmarcos
The page banner background of a mountain and forest
ThreadPool hero image

Quick Information

0 ratings
ThreadPool icon image
zmarcos
ThreadPool

A GDScript thread pool to asynchronously execute tasks.

Supported Engine Version
4.0
Version String
2.0.0
License Version
MIT
Support Level
community
Modified Date
1 year ago
Git URL
Issue URL

GODOThreadPOOL

GDScript Thread Pool, designed to perform your tasks efficiently.

Doesn't matter how many tasks you need to execute, they run with all the power the machine has, neither more nor less.

How to use

Just add the ThreadPool node to the scene, and call the submit_task() function:

$ThreadPool.submit_task(my_game_object, "my_game_logic", my_game_data)

The function ThreadPool.submit_task() works the same way as Godot built-in Thread.start().

Using Autoload also works, and is the recommend way to use it, because having more than one thread pool would waste resources.

Additional Information

For further information, read documentation on the wiki.

Finding problems in the code, open a ticket on GitHub.

A GDScript thread pool to asynchronously execute tasks.

Reviews

0 ratings

Your Rating

Headline must be at least 3 characters but not more than 50
Review must be at least 5 characters but not more than 500
Please sign in to add a review

Quick Information

0 ratings
ThreadPool icon image
zmarcos
ThreadPool

A GDScript thread pool to asynchronously execute tasks.

Supported Engine Version
4.0
Version String
2.0.0
License Version
MIT
Support Level
community
Modified Date
1 year ago
Git URL
Issue URL

Open Source

Released under the AGPLv3 license

Plug and Play

Browse assets directly from Godot

Community Driven

Created by developers for developers