Skip to content

Frame rate slows to a crawl when calling text() #69

Closed
@martinmaxk

Description

@martinmaxk

Describe the bug
When drawing text on screen (calling text() from draw() ) the FPS drops to 2

To Reproduce

from p5 import *

def setup():
    size(800, 800)
    no_stroke()

def draw():
    text("Test", (26, 30))
    print(frame_rate)

run()

Expected behavior
Should print 50-60

System information:

  • p5 release (version number or latest commit): Not sure, I downloaded it with pip a couple of days ago
  • Python version: 3.6.5
  • Operating system: Windows 10

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions