1
2
Fork
You've already forked pdParticles
1

WIP: add pooling #9

Draft
GammaGames wants to merge 9 commits from GammaGames/pool into main
pull from: GammaGames/pool
merge into: PossiblyAxolotl:main
PossiblyAxolotl:main
GammaGames commented 2024年07月03日 09:09:04 +02:00 (Migrated from github.com)
Copy link

An initial attempt at adding some part pooling.
Some notes:

  • Default pool size of 25, it will grow to whatever max needed
  • Each "Particle" (emitter) keeps a partlist and knows which indexes are active and available
  • I removed the Particle:create function and replaced it with Particle:resetPart, which doesn't allocate any tables unless needed
  • My editor is set to automatically trim trailing whitespace
  • I haven't really tested it, just got it in an initial state that worked with my Noble Engine example project
An initial attempt at adding some part pooling. Some notes: * Default pool size of 25, it will grow to whatever max needed * Each "Particle" (emitter) keeps a `partlist` and knows which indexes are active and available * I removed the `Particle:create` function and replaced it with `Particle:resetPart`, which doesn't allocate any tables unless needed * My editor is set to automatically trim trailing whitespace * I haven't really tested it, just got it in an initial state that worked with my Noble Engine example project
This pull request has changes conflicting with the target branch.
  • pdParticles.lua
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin GammaGames/pool:GammaGames/pool
git switch GammaGames/pool

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch main
git merge --no-ff GammaGames/pool
git switch GammaGames/pool
git rebase main
git switch main
git merge --ff-only GammaGames/pool
git switch GammaGames/pool
git rebase main
git switch main
git merge --no-ff GammaGames/pool
git switch main
git merge --squash GammaGames/pool
git switch main
git merge --ff-only GammaGames/pool
git switch main
git merge GammaGames/pool
git push origin main
Sign in to join this conversation.
No reviewers
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
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
PossiblyAxolotl/pdParticles!9
Reference in a new issue
PossiblyAxolotl/pdParticles
No description provided.
Delete branch "GammaGames/pool"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?