Changes between Version 6 and Version 7 of PrefsPresets
- Timestamp:
- Sep 26, 2017, 11:37:19 PM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
PrefsPresets
v6 v7 39 39 40 40 || || Max || Standard || Green || 41 || use at most X% of CPUs || 100 || 85 || 85||41 || use at most X% of CPUs || 100 || 85 || 60 || 42 42 || use at most X% of CPU time || 100 || 100 || 100 || 43 43 || suspend when on battery || yes || yes || yes || … … 56 56 || when in use, use < X% RAM || 70 || 50 || 50 || 57 57 || when not in use, use < X% RAM || 90 || 90 || 90 || 58 || leave non-GPU tasks in mem || no|| no || no ||58 || leave non-GPU tasks in mem || yes || no || no || 59 59 || use at most X% swap file || 75 || 75 || 75 || 60 60 || download rate limit kb/sec || --- || --- || --- || … … 64 64 == Implementation == 65 65 66 If a user selects one of these,66 If a user selects a preset, 67 67 we should store the preset name (max, standard, green) in user.global_prefs, 68 68 rather than the prefs themselves. 69 Example s:69 Example: 70 70 {{{ 71 71 <global_preferences> … … 79 79 This will let us change/extend the meanings of the presets. 80 80 81 Users can still edit any pref. 82 But if they change anything, they're not using the preset anymore. 83 81 Initial implementation: for simplicity, support only presets. 84 82 Enable this by PREFS_PRESETS in project.inc. 85 83 86 If set: 87 - default new accounts to "standard" 84 PHP code only needs to know about preset names. 88 85 89 In any case: 90 - scheduler: expand <preset>foo</preset> to appropriate XML. 86 C++ code