News:

Function Finder  Find all the functions within source code files

Main Menu

PlayBASIC Live: 2D Optimization Tips - Dirty Rects (2017-06-19)

Started by kevin, June 19, 2017, 09:24:48 AM

Previous topic - Next topic

kevin

PlayBASIC Live: 2D Optimization Tips - Dirty Rects (2017-06-19)


Welcome...   Today we continue with some rendering optimization ideas, focusing on a concept known as dirty rectangles in programming circles. While there's a number of different methods, in this video we look through code that uses a map as background replacement, allowing the redraw code to selectively refresh parts of the backdrop each frame instead of the whole thing.  The code computes the redraw percentage each frame,  which is often lower than 50%, in the sprite scene saving not only processing time by lowering a games system requirements.





Watch On YouTube



 Related Links:

      - PlayBASIC LIVE:  Basic Optimization with overview of forums  (2017-04-29)
      - PlayBASIC LIVE: Understanding Video & FX/ AFX Image Types (2017-06-15)
      - PlayBASIC Tutorial: A Crash Course In BASIC program Optimization