multithread #1

Merged
EmaMaker merged 6 commits from multithread into main 2023-05-20 22:33:58 +02:00

Changes the way I do multithreadin by using concurrent data structures from the Intel OneTBB library.

This paves the road to other improvements relative to multithreading (like using a thread pool for generation and meshing).

The use of concurrent data structures instead of mutexes for synchronization significanly improves performance (about 2x FPS)

Using specific MeshData struct to exchange data between meshing thread and renderer decreases RAM usage while only delaying the appearance of some near chunks during first generation, which do not get prolonged later is usage

Changes the way I do multithreadin by using concurrent data structures from the Intel OneTBB library. This paves the road to other improvements relative to multithreading (like using a thread pool for generation and meshing). The use of concurrent data structures instead of mutexes for synchronization significanly improves performance (about 2x FPS) Using specific MeshData struct to exchange data between meshing thread and renderer decreases RAM usage while only delaying the appearance of some near chunks during first generation, which do not get prolonged later is usage
EmaMaker added 6 commits 2023-05-20 22:33:40 +02:00
EmaMaker merged commit 802257abe3 into main 2023-05-20 22:33:57 +02:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: EmaMaker/voxel-engine#1
There is no content yet.