Skip to content

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