@@ -161,8 +161,8 @@ private class GPUView: NSStackView {
161
161
charts. distribution = . fillEqually
162
162
self . chartRow = charts
163
163
164
- self . addStats ( id: " temperature " , self . value. temperature)
165
- self . addStats ( id: " utilization " , self . value. utilization)
164
+ self . addStats ( id: " GPU temperature" , self . value. temperature)
165
+ self . addStats ( id: " GPU utilization" , self . value. utilization)
166
166
self . addStats ( id: " Render utilization " , self . value. renderUtilization)
167
167
self . addStats ( id: " Tiler utilization " , self . value. tilerUtilization)
168
168
@@ -191,7 +191,7 @@ private class GPUView: NSStackView {
191
191
} else {
192
192
circle = HalfCircleGraphView ( frame: NSRect ( x: 0 , y: 0 , width: circleSize, height: circleSize) )
193
193
circle. id = id
194
- circle. toolTip = localizedString ( " GPU \( id ) " )
194
+ circle. toolTip = localizedString ( id )
195
195
if let row = self . circleRow {
196
196
row. setFrameSize ( NSSize ( width: row. frame. width, height: self . circleSize + 20 ) )
197
197
row. edgeInsets = NSEdgeInsets ( top: 10 , left: 10 , bottom: 0 , right: 10 )
@@ -208,7 +208,7 @@ private class GPUView: NSStackView {
208
208
chart. layer? . backgroundColor = NSColor . lightGray. withAlphaComponent ( 0.1 ) . cgColor
209
209
chart. layer? . cornerRadius = 3
210
210
chart. id = id
211
- chart. toolTip = localizedString ( " GPU \( id ) " )
211
+ chart. toolTip = localizedString ( id )
212
212
if let row = self . chartRow {
213
213
row. setFrameSize ( NSSize ( width: row. frame. width, height: self . chartSize + 20 ) )
214
214
row. spacing = Constants . Popup. margins
@@ -223,31 +223,35 @@ private class GPUView: NSStackView {
223
223
}
224
224
}
225
225
226
- if id == " temperature " {
226
+ if id == " GPU temperature" {
227
227
circle. setValue ( value)
228
228
circle. setText ( temperature ( value) )
229
+ circle. toolTip = " \( localizedString ( id) ) : \( temperature ( value) ) "
229
230
chart. suffix = UnitTemperature . current. symbol
230
231
231
232
if self . temperatureChart == nil {
232
233
self . temperatureChart = chart
233
234
}
234
- } else if id == " utilization " {
235
+ } else if id == " GPU utilization" {
235
236
circle. setValue ( value)
236
237
circle. setText ( " \( Int ( value*100) ) % " )
238
+ circle. toolTip = " \( localizedString ( id) ) : \( Int ( value*100) ) % "
237
239
238
240
if self . utilizationChart == nil {
239
241
self . utilizationChart = chart
240
242
}
241
243
} else if id == " Render utilization " {
242
244
circle. setValue ( value)
243
245
circle. setText ( " \( Int ( value*100) ) % " )
246
+ circle. toolTip = " \( localizedString ( id) ) : \( Int ( value*100) ) % "
244
247
245
248
if self . renderUtilizationChart == nil {
246
249
self . renderUtilizationChart = chart
247
250
}
248
251
} else if id == " Tiler utilization " {
249
252
circle. setValue ( value)
250
253
circle. setText ( " \( Int ( value*100) ) % " )
254
+ circle. toolTip = " \( localizedString ( id) ) : \( Int ( value*100) ) % "
251
255
252
256
if self . tilerUtilizationChart == nil {
253
257
self . tilerUtilizationChart = chart
@@ -262,8 +266,8 @@ private class GPUView: NSStackView {
262
266
self . stateView? . layer? . backgroundColor = ( gpu. state ? NSColor . systemGreen : NSColor . systemRed) . cgColor
263
267
self . stateView? . toolTip = localizedString ( " GPU \( gpu. state ? " enabled " : " disabled " ) " )
264
268
265
- self . addStats ( id: " temperature " , gpu. temperature)
266
- self . addStats ( id: " utilization " , gpu. utilization)
269
+ self . addStats ( id: " GPU temperature" , gpu. temperature)
270
+ self . addStats ( id: " GPU utilization" , gpu. utilization)
267
271
self . addStats ( id: " Render utilization " , gpu. renderUtilization)
268
272
self . addStats ( id: " Tiler utilization " , gpu. tilerUtilization)
269
273
}
0 commit comments