We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2.8+ (6452cbc)
go version
go version go1.23.1 linux/amd64
Buy one of DEXP Storm Pro or Redragon Inferno Pro usb headset:
DEXP Storm Pro
Redragon Inferno Pro
Connect it to usb on Windows 10 Pro 22H2 19045.4780.
Windows 10 Pro 22H2 19045.4780
Run the example:
package main import ( "github.com/hajimehoshi/ebiten/v2" "log" ) type Game struct {} func NewGame() *Game { return &Game{} } func (g *Game) Update() error { log.Println("update") return ebiten.Termination } func (g *Game) Draw(screen *ebiten.Image) {} func (g *Game) Layout(w, h int) (int, int) { return w, h } func main() { log.Println("starting") ebiten.SetWindowResizingMode(ebiten.WindowResizingModeEnabled) ebiten.SetWindowSize(1000, 1000) ebiten.SetVsyncEnabled(true) log.Println("running") op := &ebiten.RunGameOptions{GraphicsLibrary: ebiten.GraphicsLibraryOpenGL} if err := ebiten.RunGameWithOptions(NewGame(), op); err != nil { log.Fatal(err) } }
2024/09/03 23:08:53 starting 2024/09/03 23:08:53 running 2024/09/03 23:08:54 update
2024/09/03 23:08:53 starting 2024/09/03 23:08:53 running 2024/09/03 23:09:03 update
0, 0% 99.22%, 9.72s, 75.70%, github.com/hajimehoshi/ebiten/v2/internal/gamepad.(*_IDirectInput8W).EnumDevices
(pprof) top10 Showing nodes accounting for 12.74s, 99.22% of 12.84s total Dropped 67 nodes (cum <= 0.06s) Showing top 10 nodes out of 52 flat flat% sum% cum cum% 12.73s 99.14% 99.14% 12.74s 99.22% runtime.cgocall 0.01s 0.078% 99.22% 2.87s 22.35% golang.org/x/sys/windows.(*Proc).Call 0 0% 99.22% 10.11s 78.74% github.com/hajimehoshi/ebiten/v2.RunGameWithOptions 0 0% 99.22% 9.72s 75.70% github.com/hajimehoshi/ebiten/v2/internal/gamepad.(*_IDirectInput8W).EnumDevices 0 0% 99.22% 9.83s 76.56% github.com/hajimehoshi/ebiten/v2/internal/gamepad.(*gamepads).update 0 0% 99.22% 9.72s 75.70% github.com/hajimehoshi/ebiten/v2/internal/gamepad.(*nativeGamepadsDesktop).detectConnection 0 0% 99.22% 0.11s 0.86% github.com/hajimehoshi/ebiten/v2/internal/gamepad.(*nativeGamepadsDesktop).directInput8Create 0 0% 99.22% 9.83s 76.56% github.com/hajimehoshi/ebiten/v2/internal/gamepad.(*nativeGamepadsDesktop).init 0 0% 99.22% 0.12s 0.93% github.com/hajimehoshi/ebiten/v2/internal/gamepad.(*nativeGamepadsDesktop).wndProc 0 0% 99.22% 9.83s 76.56% github.com/hajimehoshi/ebiten/v2/internal/gamepad.Update (inline) (pprof)
profile-inside.zip
Related: https://stackoverflow.com/questions/10967795/directinput8-enumdevices-sometimes-painfully-slow
*The owner said that it does not happens in any other game / game engine.
The text was updated successfully, but these errors were encountered:
Maybe https://stackoverflow.com/questions/10967795/directinput8-enumdevices-sometimes-painfully-slow
EDIT: Oh yes, you have already noted that
Sorry, something went wrong.
Oh yes, you have already noted that
Yeah. It's very strange that this doesn't happen on other directx based games.
DirectInput 8 might be pretty outdated so I would replace it with a new one.
I'll be glad to retest this after the update.
This can happen with other engines
No branches or pull requests
Ebitengine Version
2.8+ (6452cbc)
Operating System
Go Version (
go version
)go version go1.23.1 linux/amd64
What steps will reproduce the problem?
Buy one of
DEXP Storm Pro
orRedragon Inferno Pro
usb headset:Connect it to usb on
Windows 10 Pro 22H2 19045.4780
.Run the example:
What is the expected result?
2024-09-03_22-50-12.mp4
What happens instead?
profile-inside.zip
Related:
https://stackoverflow.com/questions/10967795/directinput8-enumdevices-sometimes-painfully-slow
*The owner said that it does not happens in any other game / game engine.
Anything else you feel useful to add?
.
The text was updated successfully, but these errors were encountered: