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

Optimize _load() #73

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Optimize _load() #73

wants to merge 1 commit into from

Conversation

MrGallo
Copy link

@MrGallo MrGallo commented Oct 25, 2018

numyp.array() can simply take self._img to drastically reduce the computing time (~90%). 350ms to 24ms on my computer.

The whole render_image() function in sketch/render.py takes a total of 24ms when calling text("hello", (50, 50)). The call to gloo.Program.draw() in that function takes 13ms (renderer.py line #263).

Partially resolves #69

numyp.array() can simply take self.img to drastically reduce the computing time (~90%). 350ms to 24ms on my computer.

`renderer.render_image()` still takes 24ms when calling `text("hello", (50, 50))`. 13ms for the `gloo.Program.draw()` function in that same `render_image` function line #263.

Partially resolves #69
@auraz
Copy link

auraz commented Feb 26, 2019

@MrGallo Looks good, please clean up tests and we'll merge

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.

Frame rate slows to a crawl when calling text()
2 participants