Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Speed up image loading #6035

Merged
merged 2 commits into from
Aug 12, 2018

Conversation

bakercp
Copy link
Member

@bakercp bakercp commented May 23, 2018

Currently ofLoadImage spends a large percentage of its time on ofToDataPath when loading lots of small images from disk. These changes help speed this up when absolute paths are already known.

Before:
instruments4

After:
instruments4

This has only been tested a bit, so a code review thinking across platforms is probably a good idea.

@arturoc arturoc merged commit 4b03c10 into openframeworks:patch-release Aug 12, 2018
olekristensen added a commit to olekristensen/openFrameworks that referenced this pull request Sep 12, 2018
* commit '06bea481039ab244eded2fabc450ad4e30585d03': (60 commits)
  Bugfix VS project template (openframeworks#6122)
  update libfreenect to fix ofxKinect on raspberry pi (openframeworks#6123)
  Fix ttf font bounding box calculations (openframeworks#6109)
  Speed up image loading (openframeworks#6035)
  fix const about `ofSerialize` in ofJson.h (openframeworks#6101)
  Revert "Update vs template, fixes openframeworks/projectGenerator#159"
  ofTtf: Fix some problems with outlines
  ofConstants: mark version as stable before release
  PG latest commit
  ofXml: fix attribute iterator
  ofXml::Attribute: add getName
  ofXml: add missing methods to remove attributes
  ofXml: add methods to remove child through a reference or move
  ofPixels.h: CLAMP -> ofClamp and include ofMath
  binding the listener method to the vSync param (openframeworks#6098)
  Android camera optimizations (openframeworks#6097)
  fix iOS / tvOS examples broken during docs sprint
  ofxAndroidGrabber: when changing camera ID close device if it was open
  android multi activity example: add manifest (openframeworks#6036)
  More efficient way for ofNode::getGlobalOrientation (3x~ faster) (openframeworks#6094)
  ...

# Conflicts:
#	apps/projectGenerator
#	libs/openFrameworks/app/ofAppGLFWWindow.cpp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants