Skip to content

Commit

Permalink
Revert "Temporarily disable OSM multithreading for testing purposes"
Browse files Browse the repository at this point in the history
This reverts commit da08dfe.
  • Loading branch information
moving-bits committed Aug 13, 2023
1 parent aa902e4 commit 61a8d37
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
4 changes: 1 addition & 3 deletions main/src/main/java/cgeo/geocaching/settings/Settings.java
Original file line number Diff line number Diff line change
Expand Up @@ -1014,9 +1014,7 @@ public static boolean hasOSMMultiThreading() {
}

public static int getMapOsmThreads() {
// @todo temporarily disabled, see https://github.com/orgs/cgeo/discussions/73
return 1;
// return hasOSMMultiThreading() ? Math.max(1, getInt(R.string.pref_map_osm_threads, Math.min(Runtime.getRuntime().availableProcessors() + 1, 4))) : 1;
return hasOSMMultiThreading() ? Math.max(1, getInt(R.string.pref_map_osm_threads, Math.min(Runtime.getRuntime().availableProcessors() + 1, 4))) : 1;
}

public static int getCompactIconMode() {
Expand Down
6 changes: 1 addition & 5 deletions main/src/main/res/xml/preferences_map_sources.xml
Original file line number Diff line number Diff line change
Expand Up @@ -133,12 +133,8 @@
<CheckBoxPreference
android:defaultValue="false"
android:key="@string/pref_map_osm_multithreaded"

android:summary="(temporarily disabled for testing purposes)"
android:enabled="false"

android:summary="@string/init_summary_map_osm_multithreaded"
android:title="@string/init_map_osm_multithreaded"
app:iconSpaceReserved="false" />
</PreferenceCategory>
<!-- android:summary="@string/init_summary_map_osm_multithreaded" -->
</PreferenceScreen>

0 comments on commit 61a8d37

Please sign in to comment.