Giter Site home page Giter Site logo

A random idea about particle-life HOT 11 CLOSED

hunar4321 avatar hunar4321 commented on May 19, 2024
A random idea

from particle-life.

Comments (11)

ker2x avatar ker2x commented on May 19, 2024 1

good news, i published a video yesterday.
https://www.youtube.com/watch?v=bRaWvCTiRTw

I do not have a high end computer. i'm doing it all on a laptop with an old nvidia. (well i also have much power powerful computer but they're for works, i can't run this).

But i have a lot of compilation optimization flag that you may not use. (mainly, it seems that you compile without enabling openMP).

i'll write some documentation with the compilation option i use.

from particle-life.

ker2x avatar ker2x commented on May 19, 2024 1

I'm working hard on optimizing and there still some headroom to speed up stuff.
I've started to explore quadtree. The problem is that the computation of interaction is so simple that optimization might only worth it when using a lot of points. And of course there is also the possibility to use the GPU.

I've started to work on graphic optimization too. Using a lot of point, the brute force way of drawing points is maxing out the GPU.

from particle-life.

KhadrasWellun avatar KhadrasWellun commented on May 19, 2024 1

Hi! Great work! Please publish the compiled version as well.
Will you want to add 4 more colours? There should also be the possibility to zoom in. Is it possible to zoom in?

from particle-life.

ker2x avatar ker2x commented on May 19, 2024

The main issue is that the "interesting models" aren't doing the same things they did before.

there might be a way to keep them interesting :

  • make randomness a parameter
  • if the parameter is missing in the model, assume it's 100% chance.
  • I didn't test this. the value is hardcoded for now. but if I put the chance at 100% then the interesting model behave as they did before.

I'll submit a PR when I'm done messing with multithreaded randomness (always has been a pain, always will)

Fun fact : at the usual "1000 points per color" my laptop with a GTX 1650 is at 100% GPU, it's running at up to 200FPS so the rendering routine will need to be optimized somehow. With 5000 points per color, it's CPU bound (as it should), running at 10FPS. (which isn't too bad)

from particle-life.

ker2x avatar ker2x commented on May 19, 2024

PR created after a lot of profiling

from particle-life.

hunar4321 avatar hunar4321 commented on May 19, 2024

Nice idea 😃
It will be great to share the screenshots or video snippets of the interesting patterns you find. Not everyone have GTX or high end PC to reproduce the results with many particles.

from particle-life.

ker2x avatar ker2x commented on May 19, 2024

ha yes, the video include feature i haven't pushed yet. i reworked the gui in order to write experimental feature. i'll do another PR.

from particle-life.

hunar4321 avatar hunar4321 commented on May 19, 2024

Great job. Love your video. Some background music would have made watching these creatures more fun.

from particle-life.

hunar4321 avatar hunar4321 commented on May 19, 2024

Hi! Great work! Please publish the compiled version as well. Will you want to add 4 more colours? There should also be the possibility to zoom in. Is it possible to zoom in?

I recompiled the binary and made a new release: https://github.com/hunar4321/particle-life/releases/tag/v.0.3.0

from particle-life.

KhadrasWellun avatar KhadrasWellun commented on May 19, 2024

Thank you! What about more colors and zoom?

from particle-life.

ker2x avatar ker2x commented on May 19, 2024

adding more color will need some refactoring. I'll add it to my todo list. Not sure about zooming.

from particle-life.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.