Giter Site home page Giter Site logo

Basic demos don't work about brplot HOT 1 CLOSED

dkogan avatar dkogan commented on June 22, 2024
Basic demos don't work

from brplot.

Comments (1)

branc116 avatar branc116 commented on June 22, 2024

Not a bad first issue.
You are right simple stuf should just work.

First issue was that imgui layout wasn't created for you.
When developing I ignored imgui.ini file.
I fixed this problem for web a while back, by just hadcodeing the ini layout and reading it on startup, because it was anoying on web, because imgui can't save it's layout on web ( or maybe it can, I just don't know how )
I fixed it now for desktop version by just running the hardcoded layout and then reading layout from disk, so now layout is pesistent and the default one is loaded on first load.

Second problem was that default make parameter were for a debug build of brplot. Debug build is more usefull for me when developing, but when I think about it's it's easyer for me to set CONFIG=DEBUG flag every time I want to build then to make peoples lifes harder.
Debug build has quite a bit longer startup, and is ~3 times slower ( estimate. )
From now on I'll set the default CONFIG will be RELEASE.

Third problem was that when stdin closes ( seq terminates ) brplot doesn't do anything, user should pan and zoom to put the relavent part of plot into focus.
Now I added that when stdin closes, offset and zoom is set such that the whole plot is visible.
This shuld make simple things simpler.

Forth thing were submodules. It's been a pain in the ass checking out and keeping up and modifying the dependencies, and now they were pain in the ass for other people when trying to build this. I decided to just include sources of external stuff and deleted submodules.
I also deleted from those dependecies suff that was not usefull to me ( zig,cmake,notpad++, vulkan,... stuff )

Now you should just be able to write:

$ git clone https://github.com/branc116/brplot
$ cd brplot
$ make
$ seq 10 | bin/brplot_imgui_linux_release_gcc

and it's should just work.

Thanks for raising this issue, I'd never get to it on my own xD
If you find something else that is bugging you feel free to raise another issue.

from brplot.

Related Issues (1)

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.