Frank
42b247756a
blur speedup
...
it seems that SEGMENT.blur() is the main bottleneck for many 2D effects.
This change optimizes performance of the function:
* avoid to re-write unchanged pixels
* early exit when blur_amount == 0 (=nothing to do)
* use _fast_ types where possible
I've seen up to 20% speedup with this change.
2023-07-06 19:51:37 +02:00
..
2023-06-27 16:01:20 +02:00
2023-05-26 14:58:40 +02:00
2023-05-31 20:12:17 +02:00
2023-07-01 20:09:52 +02:00
2023-07-01 20:09:52 +02:00
2023-07-01 20:09:52 +02:00
2023-06-02 10:51:16 +02:00
2023-06-22 10:06:19 +02:00
2023-06-10 20:43:27 +02:00
2023-06-27 16:01:20 +02:00
2023-01-06 09:24:29 +01:00
2023-06-04 17:55:29 +02:00
2023-06-27 01:51:44 +02:00
2023-05-09 17:44:26 +02:00
2023-07-06 19:51:37 +02:00
2023-07-06 19:51:37 +02:00
2023-07-06 19:07:09 +02:00
2023-07-03 19:15:50 +02:00
2023-05-05 22:37:47 +02:00
2023-06-27 01:51:24 +02:00
2023-04-02 18:07:48 +02:00
2023-06-22 11:26:24 +02:00
2023-06-22 10:06:19 +02:00
2023-06-22 19:06:07 +02:00
2023-06-27 16:01:20 +02:00
2023-01-06 09:24:29 +01:00
2023-06-27 01:51:44 +02:00
2023-01-06 09:24:29 +01:00
2023-06-22 10:06:19 +02:00
2023-07-03 17:00:43 +02:00
2023-06-23 23:49:54 +02:00
2023-05-30 19:36:14 +02:00
2023-05-30 16:09:51 +02:00
2023-05-31 17:35:43 +02:00
2023-02-08 10:18:41 +01:00
2023-02-04 23:59:28 +01:00
2023-05-28 22:50:19 +02:00
2022-11-02 14:56:50 +01:00
2023-02-21 17:09:04 +01:00
2023-03-19 11:24:59 +01:00
2023-05-02 21:52:39 +01:00
2023-04-14 13:09:25 +02:00
2023-01-06 09:24:29 +01:00
2023-02-04 10:56:07 +01:00
2023-06-30 15:03:32 +02:00
2023-06-22 10:06:19 +02:00
2023-06-22 10:06:19 +02:00
2023-05-28 22:50:19 +02:00
2023-02-05 12:23:05 +01:00
2023-01-06 09:24:29 +01:00
2023-01-06 09:24:29 +01:00
2023-03-10 14:08:52 +01:00
2023-07-03 15:07:14 +02:00
2020-04-10 12:30:08 +02:00
2023-02-21 17:07:32 +01:00
2022-03-20 22:12:18 +01:00
2023-01-06 09:24:29 +01:00
2023-03-16 13:08:34 +01:00
2023-06-27 01:51:24 +02:00
2023-06-27 01:51:44 +02:00
2023-06-27 16:01:20 +02:00
2023-06-18 01:07:50 +02:00
2023-06-27 01:51:24 +02:00