doodle/level
Noah Petherbridge 97394f6cdb WIP Finishing Up Texture Caching System
Apart from putting the cached bitmaps in a better place, this about
finishes up the texture caching optimization and IT IS FAST!

When I spam drag a lot of pixels around the FPS may drop to the 40's but
once the caches are warmed up the FPS returns to 60 and stays there,
even if the screen is very busy with pixels.

An undocumented debug feature: set the environment variable
DEBUG_CHUNK_COLOR='#00FFFF' to set a bitmap background color besides
white to be used when caching the chunks. It helps to visualize where on
the screen the bitmaps are being used. May go away in the future.

Changes:

- Found that the old default chunk size of 1000 was slow to generate
  bitmap images to cache. The 100px test size was fast and 128 sounds
  like a good middle ground number to pick for now.
- Fixed all the problems with scroll behavior and offset by inverting
  the sign of the scroll behavior. Scrolling to the Right and Down
  actually subtracts X,Y values instead of adds them.
2018-10-17 23:01:21 -07:00
..
base_test.go WIP Finishing Up Texture Caching System 2018-10-17 23:01:21 -07:00
chunk_map.go Implement Chunk System for Pixel Data 2018-09-23 15:42:05 -07:00
chunk_test.go Implement Chunk System for Pixel Data 2018-09-23 15:42:05 -07:00
chunk.go WIP Finishing Up Texture Caching System 2018-10-17 23:01:21 -07:00
chunker_test.go WIP Texture Caching 2018-10-17 20:52:44 -07:00
chunker.go WIP Finishing Up Texture Caching System 2018-10-17 23:01:21 -07:00
json.go Add doodad.exe binary and PNG to Drawing Converter 2018-10-16 12:26:41 -07:00
log.go Abstract Drawing Canvas into Reusable Widget 2018-08-16 20:37:19 -07:00
palette.go Implement Chunk System for Pixel Data 2018-09-23 15:42:05 -07:00
swatch.go Implement Chunk System for Pixel Data 2018-09-23 15:42:05 -07:00
types.go Doodad Edit Mode: Saving and Loading From Disk 2018-09-26 10:07:22 -07:00