Check out our latest project ✨ OpenChapter.io: free ebooks the way its meant to be 📖

Idle Queue

An asset by ZombieHartGames
The page banner background of a mountain and forest
Idle Queue hero image

Quick Information

0 ratings
Idle Queue icon image
ZombieHartGames
Idle Queue

Singleton script that will process methods during idle time on the main thread.The IdleQueue singleton places callables in a queue to be executed when the cpu is not busy, prioritizing the physics and main processes of the game with minimal effect on the frame rate. This allows methods to be run in the background on the main thread. (All member functions of this singleton are thread safe).

Supported Engine Version
4.0
Version String
1.0.1
License Version
MIT
Support Level
community
Modified Date
10 months ago
Git URL
Issue URL

GodotIdleQueue

A godot optimization script that allows processes to run between frames on the main thread.

Many games require complex functions that if called all at once will cause the frame rate to jitter. Usually, this is solved using multithreading, but multithreaded processes in the Godot Engine are very limited in their capabilities. The IdleQueue plugin allows method calls to be queued and run between frames preserving the game's frame rate. The queuing process works similar to the call_deferred method, where the engine waits until the end of the frame to call the queued methods. This script, unlike call_deferred, will not call all queued calls all at once, lowering the frame rate, but instead calling as many as it can between frames to keep a consistent frame rate.

This script is perfect for features such as procedural generation and loading large scenes.

Singleton script that will process methods during idle time on the main thread.
The IdleQueue singleton places callables in a queue to be executed when the cpu is not busy, prioritizing the physics and main processes of the game with minimal effect on the frame rate. This allows methods to be run in the background on the main thread. (All member functions of this singleton are thread safe).

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
Idle Queue icon image
ZombieHartGames
Idle Queue

Singleton script that will process methods during idle time on the main thread.The IdleQueue singleton places callables in a queue to be executed when the cpu is not busy, prioritizing the physics and main processes of the game with minimal effect on the frame rate. This allows methods to be run in the background on the main thread. (All member functions of this singleton are thread safe).

Supported Engine Version
4.0
Version String
1.0.1
License Version
MIT
Support Level
community
Modified Date
10 months 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