38 Commits

Author SHA1 Message Date
881fd0fb7a Moved egui integration into it's own struct. 2022-01-19 11:42:03 +00:00
1f17478d07 Added initial support for egui. 2022-01-18 14:44:25 +00:00
d497a28eb0 Now using wgpu for the backend rendering.
Separated most of application code into `App`.
Slightly cleaned up other parts of the project.
Removed image downscaling.
Updated logging and command line dependencies.
2022-01-18 12:24:20 +00:00
38c3ecc377 Removed debugging. 2022-01-07 00:24:52 +00:00
8434e02487 Fixed main thread pinning the CPU at 100% if all images were removed after a while. 2021-12-30 22:54:46 +00:00
5814a1d968 Paths are no canonicalized by the image loader due to removed paths not being able to be canonicalized anymore. 2021-12-30 22:35:05 +00:00
6b9aa97273 Added downscaling cache to create and load downscaled images for faster loading times. 2021-12-30 22:15:19 +00:00
f9c55c92f3 Now canonicalizing paths. 2021-12-30 02:59:15 +00:00
28f5d77ebf Re-added image backlog per gl image. 2021-12-30 02:46:14 +00:00
f69af3050b Image loader arguments are now loaded from a file. 2021-12-30 00:42:06 +00:00
1dceba1045 Improved handling of swapped image states. 2021-12-30 00:27:31 +00:00
3cde3a5c55 Removed the processor stage of loading. 2021-12-30 00:13:13 +00:00
2e2a1ce2d2 Heavily revised how geometry states store the images by delaying their loading as much as possible. 2021-12-29 23:44:37 +00:00
15e61c324d Slightly revamped image loading and processing by disabling resizing by default. 2021-12-27 21:22:39 +00:00
842e1c8659 Slightly refactored path loading to load the initial paths in the background. 2021-12-27 20:38:39 +00:00
137fc561f3 Made most debug logs that occur often traces.
Fixed bug in `upscale`, where it would receiver images with a `1.0` scale.
2021-12-27 20:37:44 +00:00
54b861e406 Added file logging. 2021-12-27 20:36:41 +00:00
a43d6b205a Heavily revised and split all of image loading into 3 sections.
`priority_spmc` now has a max capacity.
2021-11-18 20:35:13 +00:00
aa583ffff3 Moved path loading to it's own module. 2021-11-18 18:12:57 +00:00
2806e61fc6 ImageLoader now only stores the image request sender.
Each image loader thread now requests the paths and loads them in advance, before receiving the request.
Path and image channels are now a priority spmc channel.
Each `GlImage` now stores `image_backlog` image receivers.
2021-11-18 00:47:22 +00:00
8fcd911266 Heavily revized image_loader module to be more transparent.
Fixed `rrc::Responder::respond` not notifying the requester sometimes.
All dependencies are now compiled in release mode.
2021-11-17 19:46:13 +00:00
1ee7d18e7e Improved implementation of rrc. 2021-11-17 16:49:46 +00:00
7307ad93c1 Implemented rrc and once_channel channels.
The image loader now asks the distributer for a path, and then requests from the loader threads.

This isn't the final design, but it's a step towards it.
2021-11-17 16:12:28 +00:00
cfbb01e7fa Added loader thread and upscale arguments. 2021-11-16 23:54:19 +00:00
7653e11c61 Mutex is now only locked when upscaling if we need to run waifu2x. 2021-11-16 23:22:27 +00:00
7950c26249 Changed the hasher used to a stable one to prevent all cache being useless after upgrades. 2021-11-16 23:18:52 +00:00
5ca5aee683 Paths are now shuffled at the beginning too. 2021-11-16 22:56:35 +00:00
a37a912bf1 Upscaling now downscales to the correct size when overscaling. 2021-11-16 22:53:49 +00:00
78823d28ef load_image can now upscale images using waifu2x.
This is VERY primitive, and probably shouldn't be used too much, but seems to work fine.
2021-11-16 22:49:18 +00:00
24b0353676 Moved load_image to it's own module. 2021-11-16 21:38:52 +00:00
19a9a293cd Max image size is now the largest image width and height. 2021-11-16 16:43:33 +00:00
5ff0a48ef7 Fixed busy loop when no paths exist.
Now joining all loader threads and the distributer thread at the end of the program.
2021-11-16 16:21:18 +00:00
56822f9941 Heavily refactored image loading. 2021-11-16 02:24:26 +00:00
94d1b51cd6 Moved the image distribution thread function to it's own function.
Generalized `send_files_dir` and renamed it to `visit_files_dir`.
2021-11-15 22:34:20 +00:00
e7aeb608f6 Grid may now be used multiple times. 2021-10-22 07:41:10 +01:00
b9c6d10c79 Fixed image geometry having non-zero position when not specified. 2021-10-22 07:15:27 +01:00
91b312cc9a Rect now stores cgmath::{Point2, Vector2} instead of arrays. 2021-10-22 06:55:30 +01:00
f283385edf Initial commit.
Brought over from `zss` and adapted / cleaned up.
2021-10-22 06:37:35 +01:00