Coder Social home page Coder Social logo

Multithreaded rendering about dawdreamer HOT 1 CLOSED

DBraun avatar DBraun commented on June 26, 2024
Multithreaded rendering

from dawdreamer.

Comments (1)

DBraun avatar DBraun commented on June 26, 2024

I've started a branch for this here https://github.com/DBraun/DawDreamer/tree/multithread-001

So far it adds a tests/test_multithread.py and sets up the Visual Studio Project to debug the python code. You can put breakpoints in the C++ code too.

  1. Build on the command line in an x64 Native Tools for Visual Studio 2022 prompt: msbuild Builds/VisualStudio2022/DawDreamer.sln /property:Configuration=Debug
  2. Then make PythonApplication1 the startup project: image
  3. Then customize the path to the tests/test_multithread.py
  4. Then press F5 to launch the debugger

So far I haven't gotten it to work with various attempts:

  • py::call_guard<py::gil_scoped_release>() with render in source.cpp
  • Having RenderEngine inherit juce::Thread
  • Having RenderEngine inherit juce::AudioAppComponent
  • Having a new class that inherits AudioAppComponent and having RenderEngine create and destroy it on each render
  • Various hacky things with juce::MessageManager::getInstance()->setCurrentThreadAsMessageThread()

from dawdreamer.

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.