Less aggressive precompute

This commit is contained in:
laurenspriem
2025-06-20 16:58:36 +05:30
parent e4de98b9d6
commit 43b96776e4

View File

@@ -123,7 +123,7 @@ class _PersonGallerySuggestionState extends State<PersonGallerySuggestion>
Future<void> _precomputeNextSuggestions() async {
try {
// Precompute face crops for next few suggestions
const maxPrecompute = 3;
const maxPrecompute = 2;
final endIndex = (currentSuggestionIndex + maxPrecompute)
.clamp(0, allSuggestions.length);