Remember me

Lost Password?

Register now!


Who's Online
80 user(s) are online (58 user(s) are browsing Forums)

Members: 4
Guests: 76

Futaura, NinjaCyborg, eastone, ktadd, more...


Report message:*

Re: DevilutionX - Diablo 1

Subject: Re: DevilutionX - Diablo 1
by Capehill on 2019/12/31 19:11:53


Both binaries have serial debug on, I think it slows down at least the SDL1 version because there are mouse events logged.

Regarding SDL2, what happens if texture format is changed to ARGB8888? See this line:

https://github.com/diasurgical/devilut ... ceX/miniwin/misc.cpp#L169

ARGB8888 the only one supported by renderer so using that should avoid one conversion step. If I understand correctly:

1) engine uses 8-bit surface to draw
2) which is then converted to 24-bit texture by engine
3) which is converted to 32-bit texture by SDL2
4) which is uploaded to VRAM (with or without DMA)

Finally there is a frame limiter: https://github.com/diasurgical/devilut ... 3b855/SourceX/dx.cpp#L257

Not sure if it's activating or not.

Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project