Skip to content

Commit

Permalink
uncomment timers
Browse files Browse the repository at this point in the history
  • Loading branch information
sevenrats committed Nov 11, 2023
1 parent 9299aba commit 46649b3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions components/data/MovieData.bs
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ sub setPoster()
if isValidAndNotEmpty(m.top.json.ImageBlurHashes.Primary)
blurhash = m.top.json.ImageBlurHashes.Primary[m.top.json.ImageTags.Primary]
if get_user_setting("ui.design.renderblurhashes") = "true" and isValidAndNotEmpty(blurhash)
'timer = CreateObject("roTimeSpan")
timer = CreateObject("roTimeSpan")
m.top.posterBlurHashUrl = renderFakeBlurhash(blurhash, imgParams.maxWidth, imgParams.maxHeight)
'print "Took " + Str(timer.totalMilliseconds()) + " milliseconds to render a blurhash in MoviesData."' DELETE THIS TEMPORARY LINE OF DEV CODE
print "Took " + Str(timer.totalMilliseconds()) + " milliseconds to render a blurhash in MoviesData."
end if
end if
else if isValid(m.top.json.BackdropImageTags) and isValid(m.top.json.BackdropImageTags[0])
Expand Down
4 changes: 2 additions & 2 deletions components/data/MusicArtistData.bs
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ sub setPoster()
if isValidAndNotEmpty(m.top.json.ImageBlurHashes.Primary)
blurhash = m.top.json.ImageBlurHashes.Primary[m.top.json.ImageTags.Primary]
if get_user_setting("ui.design.renderblurhashes") = "true" and isValidAndNotEmpty(blurhash)
'timer = CreateObject("roTimeSpan")
timer = CreateObject("roTimeSpan")
m.top.posterBlurHashUrl = renderFakeBlurhash(blurhash, imgParams.maxWidth, imgParams.maxHeight)
'print "Took " + Str(timer.totalMilliseconds()) + " milliseconds to render a blurhash in MusicArtistData."
print "Took " + Str(timer.totalMilliseconds()) + " milliseconds to render a blurhash in MusicArtistData."
end if
end if
else if m.top.json.BackdropImageTags[0] <> invalid
Expand Down

0 comments on commit 46649b3

Please sign in to comment.