aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--TODO3
-rw-r--r--src/QuickMedia.cpp10
2 files changed, 6 insertions, 7 deletions
diff --git a/TODO b/TODO
index 088511e..5f0fdfa 100644
--- a/TODO
+++ b/TODO
@@ -148,4 +148,5 @@ Show a subscribe button for channels, which should be red and say "subscribe" if
Display youtube playlists differently and support downloading the whole playlist at once.
To fix jitter in body when items are added before the selected item, we should increase page_scroll by the height of the new item.
Cancel current search when search is updated.
-Support 4chan archive. \ No newline at end of file
+Support 4chan archive.
+Use old method of rendering body where rendering items is done up and down, starting from the selected item. This will make quickmedia run as fast when displaying 100 000 items as when displaying 10 items. \ No newline at end of file
diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp
index 2926637..0709a12 100644
--- a/src/QuickMedia.cpp
+++ b/src/QuickMedia.cpp
@@ -1709,7 +1709,6 @@ namespace QuickMedia {
while(window.isOpen() && (current_page == PageType::IMAGES || current_page == PageType::IMAGES_CONTINUOUS)) {
if(current_page == PageType::IMAGES) {
- window.setFramerateLimit(20);
while(current_page == PageType::IMAGES) {
int page_navigation = image_page(manga_images_page, chapters_body);
if(page_navigation == -1) {
@@ -1725,13 +1724,13 @@ namespace QuickMedia {
manga_images_page->change_chapter(chapters_body->get_selected()->get_title(), chapters_body->get_selected()->url);
}
}
- window.setFramerateLimit(FPS_IDLE);
- idle = true;
} else if(current_page == PageType::IMAGES_CONTINUOUS) {
image_continuous_page(manga_images_page);
}
}
+ window.setFramerateLimit(monitor_hz);
+ idle = false;
content_storage_file_modified = true;
image_download_cancel = true;
@@ -1791,6 +1790,7 @@ namespace QuickMedia {
tabs[selected_tab].page->submit_body_item = prev_selected_item;
redraw = true;
+ idle_active_handler();
hide_virtual_keyboard();
};
@@ -3076,6 +3076,7 @@ namespace QuickMedia {
malloc_trim(0);
sf::Clock force_redraw_timer;
+ window.setFramerateLimit(20);
// TODO: Show to user if a certain page is missing (by checking page name (number) and checking if some are skipped)
while (current_page == PageType::IMAGES && window.isOpen()) {
@@ -3270,9 +3271,6 @@ namespace QuickMedia {
window_size.x = window.getSize().x;
window_size.y = window.getSize().y;
-
- window.setFramerateLimit(FPS_IDLE);
- idle = true;
}
void Program::image_board_thread_page(ImageBoardThreadPage *thread_page, Body *thread_body) {