neb0lle / slimesimulation Goto Github PK
View Code? Open in Web Editor NEWphysarum polycephalum simulation
License: MIT License
physarum polycephalum simulation
License: MIT License
SpeciesSettings
for each.SpeciesSettings.color
.keeps crashing on linux
(10 FPS/ 10000 Agents)
.DDTexture()
produces a huge performance hit ie; RES * RES
iterations.agent
and *pixels
array member calculations. (recommended)DDTexture()
by using a shader.The *pixels
array allocated in render.cpp
never gets freed.
Using freeParray()
produces a double free error.
Maybe the UnloadTexture frees the array bcz it loads texture using *pixels
data. (Not sure)
freeParray()
at the end of the main simulation loop.INFO: TEXTURE: [ID 2] Texture loaded successfully (128x128 | GRAY_ALPHA | 1 mipmaps)
INFO: TEXTURE: [ID 3] Texture loaded successfully (1000x1000 | R8G8B8A8 | 1 mipmaps)
INFO: TEXTURE: [ID 3] Unloaded texture data from VRAM (GPU)
slimesimulation(58977,0x10457c580) malloc: *** error for object 0x140008000: pointer being freed was not allocated
slimesimulation(58977,0x10457c580) malloc: *** set a breakpoint in malloc_error_break to debug
No memory leak or double free error.
raylib version: 4.5.0
OS: macOS 12.6
SpeciesSettings
SpeciesSettings
.Clamp()
.agent.angle
recalculation using InvResolveAngle()
is not accurate at bounds collision.Clamp()
for random angle agent redirection at bounds collision.decayRate
in DDTexture
).The texture produces an artifact right on initialization but not always.
Randomly comes and goes but never occurs when no agents
are initialized.
Bug only exists on macOS. (only M1 tested)
The artifact may be generated from either the texture or pixelarray. (not sure)
Havnt tested on other x86 maybe issue wont persist there ig.
Run the simulation a few times till u get the artifact.
raylib version: 4.5.0
OS: macOS 12.6
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.