DirectX backend problem

Make games! Discuss those games here.

Moderators: Bob the Hamster, marionline, SDHawk

Post Reply
User avatar
Ichiro
Slime Knight
Posts: 237
Joined: Sat Sep 11, 2010 1:20 am
Location: john madden

DirectX backend problem

Post by Ichiro »

This is only a problem I have with the directx backend both on the beelzebufo and nightly builds. When the window loses focus, the game speed slows to a crawl (about 5 ticks per second?)

This problem does not occur with the sdl backend.

OS in use is Win7 64-bit running on a AMD A8-3800 APU.
Image
User avatar
Bob the Hamster
Liquid Metal King Slime
Posts: 7460
Joined: Tue Oct 16, 2007 2:34 pm
Location: Hamster Republic (Ontario Enclave)
Contact:

Post by Bob the Hamster »

This sounds very familiar. Someone else definitely reported some symptoms like this, but I can't remember who.

The window remains slow even when it returns to focus, right?

And does going into/out of full-screen mode make any difference?
User avatar
Ichiro
Slime Knight
Posts: 237
Joined: Sat Sep 11, 2010 1:20 am
Location: john madden

Post by Ichiro »

Correct, and it remains slow when going into and returning from full-screen.

I've set the file associations and the program entry in the start menu to use the "-gfx sdl" switch as a fix.
Image
TMC
Metal King Slime
Posts: 4101
Joined: Sun Apr 10, 2011 9:19 am

Post by TMC »

IIRC Hawk had the same problem; also Ichiro has reported this before.

I couldn't work out what the problem was, and concluded that the best thing to do would be to log timing info of various DirectX functions that gfx_directx calls and other debug info to try to narrow it down.

Haven't touched gfx_directx in a long time, but I need to do some updates and bugfixing on it soon anyway.

Edit: Or I should figure out whether it's possible to distribute something like PIX instead.
Last edited by TMC on Tue Apr 22, 2014 10:31 am, edited 1 time in total.
Post Reply