2
0
mirror of https://github.com/koreader/koreader synced 2024-11-18 03:25:46 +00:00

Reset to one core (#8579)

This commit is contained in:
zwim 2022-01-16 18:19:27 +01:00 committed by GitHub
parent bbc9ef65d3
commit 8b43811812
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -428,6 +428,9 @@ function Document:renderPage(pageno, rect, zoom, rotation, gamma, render_mode, h
if not rect then
logger.warn("aborting, since we do not have a specification for that part")
-- required part not given, so abort
if hinting then
Device:enableCPUCores(1)
end
return
end
-- only render required part