Skip to content

Commit e0e50d7

Browse files
committed
Don't run lookahead on every line of frame-by-frame typesetting
This is an accuracy tradeoff - not knowing the next sub right away can cause speed flicker but I haven't noticed real-world regressions
1 parent b2ed2a1 commit e0e50d7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

evafast.lua

+1-3
Original file line numberDiff line numberDiff line change
@@ -208,9 +208,7 @@ local function adjust_speed()
208208

209209
if sub_displayed then
210210
target_speed = options.subs_speed_cap
211-
end
212-
213-
if options.subs_lookahead then
211+
elseif options.subs_lookahead then
214212
if next_sub_at < current_time and next_sub_at ~= -2 then
215213
next_sub_at = next_sub(current_time)
216214
end

0 commit comments

Comments
 (0)