1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-12-27 10:39:24 +01:00
Commit graph

31 commits

Author SHA1 Message Date
Ell
6f64661817
Improve the runtime texture packer algorithm (#31)
* use a random size for testing pack times to show how truly bad the current algo is

* expand overlap test to include padding and pixel padding

* fixed TestPackTimes on KNI

* also test for whether the padding intersects

* Use a binary tree algorithm for the runtime texture packer

* update changelog and bump version

* fixed fna compile errors

* save TestPackTimes textures separately
2024-11-07 16:18:51 +01:00
Ell
677230ce28 Moved extension methods into matching namespaces to avoid unexpected suggestions 2024-07-19 20:02:28 +02:00
Ell
bccef1f7f4 fixed FNA compatibility 2023-05-15 18:41:45 +02:00
Ell
e71450366b additional runtime texture packer improvements 2023-05-15 18:36:23 +02:00
Ell
4863b5504b restored FNA compatibility 2023-05-15 18:05:47 +02:00
Ell
99b45b09d9 Improved RuntimeTexturePacker performance for differently sized textures 2023-05-15 17:50:41 +02:00
Ell
1e16c6fdc5 some docs website improvements with new docfx version 2023-04-15 15:11:50 +02:00
Ell
7f7a9c6415 Revert "Improved RuntimeTexturePacker speed when using many distinct texture sizes"
This reverts commit ca9c8e6cfd.
2023-01-30 22:51:15 +01:00
Ell
ca9c8e6cfd Improved RuntimeTexturePacker speed when using many distinct texture sizes 2023-01-30 22:38:15 +01:00
Ell
db02dfcfde Store a RuntimeTexturePacker packed texture region's source region 2022-11-14 11:49:47 +01:00
Ell
17ce7b668d Added the ability to add additional regions to a RuntimeTexturePacker after packing 2022-10-20 23:59:42 +02:00
Ell
0a696941dc cleaned up code 2022-08-20 11:39:28 +02:00
Ell
b2898a8eae Made RuntimeTexturePacker restore texture region name and pivot when packing 2022-08-03 10:37:59 +02:00
Ell
5d7d238630 added MLEM.FNA 2022-06-24 14:01:26 +02:00
Ell
aabb1ed5df added .editorconfig 2022-06-17 18:23:47 +02:00
Ell
59af00c89a Code cleanup, and marked AStar.InfiniteCost as obsolete 2022-06-15 11:38:11 +02:00
Ell
16053d9d04 further improve runtime texture packer performance by caching the first possible position for a request of a given size 2022-05-28 21:21:25 +02:00
Ell
61770d59b1 further improve RuntimeTexturePacker performance by only checking against already packed textures 2022-05-27 11:41:21 +02:00
Ell
93a82bcf36 cache UniformTextureAtlas texture straight away when checking for transparency 2022-05-27 11:19:29 +02:00
Ell
fdf04a7e77 allow ignoring transparent regions when packing a UniformTextureAtlas 2022-05-27 11:16:16 +02:00
Ell
cb496f613f Improve RuntimeTexturePacker performance by checking against packed textures in the same order as packing 2022-05-27 11:02:33 +02:00
Ell
b9f2de8290 Made RuntimeTexturePacker padding be per request and improve performance by caching texture data 2022-05-25 13:18:25 +02:00
Ell
f0f1d7f8ed added runtime texture region padding and other improvements 2022-05-25 12:37:51 +02:00
Ell
444b5c6afb copy base documentation for a lot of docfx unresolvable sources 2021-11-22 19:25:18 +01:00
Ell
115b05beaa Allow RuntimeTexturePacker to automatically dispose submitted textures when packing 2021-11-01 16:00:13 +01:00
Ell
602f19a2a8 some minor code style and format improvements 2021-03-24 22:44:39 +01:00
Ell
94c9d45a43 don't auto-dispose the texture 2021-02-11 01:36:22 +01:00
Ell
b34172d043 made the texture packer disposable and resettable 2021-02-11 01:35:27 +01:00
Ell
2cf912255d allow the texture packer to forcibly be square or a power of two 2021-02-11 01:09:07 +01:00
Ell
e2cb125356 allow extending the max width of a runtime texture packer 2021-01-18 01:25:20 +01:00
Ell
db54ea7b5e added a runtime texture packer 2020-12-20 00:11:10 +01:00