-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Improve Framerate and performance of gifplayer library, have it easy to pull from my config for vsync, etc. (Frame cap as well?)
Here is vex's api for brain.screen.
drawImageFromFile() The drawImageFromFile(filename, x, y) method draws an image from the SD card. The filename you put when calling the method must be located on the SD card. Parameters Description filename The filename of the image. x The x coordinate for the top-left corner of the image on the screen. y The y coordinate for the top-left corner of the image on the screen. Returns: None. // Draw the vex.bmp image on the Brain's screen at // coordinate 0, 0. Brain.Screen.drawImageFromFile('vex.bmp', 0, 0) render() The screen can be buffered in two ways: The render() method switches to double buffering or renders the back buffer to the Brain’s screen. The render(bSyncWait, bRunScheduler) method switches to double buffering or renders the back buffer to the Brain’s screen, with options to wait for the Vsync signal before proceeding and to run the scheduler during the process. Parameters Description bSyncWait true to make the Brain wait for the Vsync signal before allowing subsequent commands to execute. bRunScheduler Optional. true will run background tasks while waiting for the Brain’s screen to render. By default, this parameter is true. Returns: True if buffer was successfully rendered to the screen.
Also, make sure the gifplayer code is updated. Look at these forks: (If you can't look at it, please let me know!)
https://github.com/Current-Electric-Vehicles/gifdec/tree/master
https://github.com/erhoof/gifdec/tree/feature/allocated-memory
https://github.com/everestsummer/gifdec/tree/master
And apply what they have. (And remove any goto in the code)
Metadata
Metadata
Assignees
Labels
Projects
Status