… | |
… | |
1730 | group => "prefetch", timeout => 2, fg => [1, 1, 0, 0.5]); |
1730 | group => "prefetch", timeout => 2, fg => [1, 1, 0, 0.5]); |
1731 | } |
1731 | } |
1732 | } |
1732 | } |
1733 | |
1733 | |
1734 | # check once/second for faces that need to be prefetched |
1734 | # check once/second for faces that need to be prefetched |
|
|
1735 | # this should, of course, only run on demand, but |
|
|
1736 | # SDL forces worse things on us.... |
1735 | |
1737 | |
1736 | Event->timer (after => 1, interval => 1, cb => sub { |
1738 | Event->timer (after => 1, interval => 1, cb => sub { |
1737 | $CONN->face_prefetch |
1739 | $CONN->face_prefetch |
1738 | if $CONN; |
1740 | if $CONN; |
1739 | }); |
1741 | }); |