mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 18:58:54 +01:00
internal/graphicsdriver/metal: add comments
Updates #2880 Updates #2883
This commit is contained in:
parent
055db234a1
commit
e39c50c296
@ -53,11 +53,14 @@ const (
|
||||
)
|
||||
|
||||
func (v *view) maximumDrawableCount() int {
|
||||
// Use 2 for Arm Mac (#2883).
|
||||
if runtime.GOARCH == "arm64" {
|
||||
return 2
|
||||
}
|
||||
// Note that the architecture might not be the true reason of the issues (#2880, #2883).
|
||||
// Hajime tested only MacBook Pro 2020 (Intel) and MacBook Pro 2023 (M3).
|
||||
|
||||
// Use 3 for Intel Mac and iOS. With 2, There are some situations that the FPS becomes half, or the FPS becomes too low (#2880).
|
||||
if runtime.GOARCH == "amd64" {
|
||||
return 3
|
||||
}
|
||||
|
||||
// Use 2 for Arm Mac (#2883).
|
||||
return 2
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user