Commit graph

7 commits

Author SHA1 Message Date
Marcel Hellkamp
1b36a66243 Optimized decimal and hex string parsing in hot path.
Using specialized and inline-able parsers instead of strtoul() improved
pixel throughput from ~63MB/s to ~83MB/s (+30%) on a single core
on my machine.

As a side effect, the PX command now allows any non-decimal
character as separator between parameters ¯\_(ツ)_/¯
2018-04-02 17:26:08 +02:00
Marcel Hellkamp
b2b4403b67 Added STATS command to pixelnuke 2018-03-31 15:09:50 +02:00
Marcel Hellkamp
c651046e3f Added canvas_fill(rgba) and a 50% black fill bound to the 'c' key. 2018-03-29 18:39:37 +02:00
Marcel Hellkamp
0090f518e9 Fix: Resize callback won't fire and canvas_get_size would return wrong size.
The canvas_get_size function now returns the number of visible pixels after scaling.
The canvas resize callback now fires after a window was created or updated.
2018-03-29 18:37:18 +02:00
Marcel Hellkamp
b736e44347 Fix canvas key callback signature 2018-03-29 15:56:32 +02:00
Marcel Hellkamp
a80c3876c7 Fix protocol parser and logic. Stuff works now :D 2018-03-29 15:25:40 +02:00
Marcel Hellkamp
68c34c5346 Added C implementation (incomplete) 2018-03-28 22:20:03 +02:00