GithubHelp home page GithubHelp logo

Use a thread for ppm exporter about gource HOT 7 CLOSED

ghs2015 avatar ghs2015 commented on August 16, 2024
Use a thread for ppm exporter

from gource.

Comments (7)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 16, 2024
Good idea.

FYI ppm.cpp has changed a bit (not released yet) as I improved the performance 
by
doing less writes, so the patch will need some merging.

http://github.com/acaudwell/Gource/commit/7857f6fe0e5dd3e25034f7d6b31ec83fd3564e
14

Original comment by [email protected] on 18 Jan 2010 at 7:42

  • Added labels: Type-Other
  • Removed labels: Type-Defect

from gource.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 16, 2024
[deleted comment]

from gource.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 16, 2024
Here's a patch against current git. It's a bit more C++ oriented...

Original comment by [email protected] on 18 Jan 2010 at 8:40

Attachments:

from gource.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 16, 2024
Nice. I will try it out later this week.

Original comment by [email protected] on 18 Jan 2010 at 8:48

  • Changed state: Accepted

from gource.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 16, 2024
Hi. I've merged your code into this branch:

http://github.com/acaudwell/Gource/tree/ppmthread

http://gource.googlecode.com/files/gource-0.24-beta1.tar.gz

I've changed the code to use the SDL_thread API since that is more portable (the
SDL_thread API is essentially identical). I made a few other changes like adding
double buffering, and doing the pixel flipping on the video card.

In my tests its about 2fps faster (11fps vs 9fps) with the thread than without 
using
this command line:

./gource --stop-at-end --output-ppm-stream - | ffmpeg -y -b 3000K -r 60 -f 
image2pipe
-vcodec ppm -i - -vcodec libx264 gource.mp4

(running against Gource.git)

It'd be good if you could have a look over changes before I add this to the 
master.

Cheers

Original comment by [email protected] on 28 Jan 2010 at 3:02

from gource.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 16, 2024
I've updated the beta:

http://gource.googlecode.com/files/gource-0.24-beta2.tar.gz

Original comment by [email protected] on 31 Jan 2010 at 10:30

from gource.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 16, 2024

Original comment by [email protected] on 31 Jan 2010 at 10:37

  • Changed state: Fixed

from gource.

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.