D2X-W32: Fixed slow keyboard pitch/bank, added 1600x1200 res

A forum just for you old time Descent and Descent2 players.
Post Reply
User avatar
Diedel
D2X Master
D2X Master
Posts: 5278
Joined: Thu Nov 05, 1998 12:01 pm
Contact:

D2X-W32: Fixed slow keyboard pitch/bank, added 1600x1200 res

Post by Diedel »

Moved here.
User avatar
Sirius
DBB Master
DBB Master
Posts: 5616
Joined: Fri May 28, 1999 2:01 am
Location: Bellevue, WA
Contact:

Post by Sirius »

Just wondering, what's up with the numbers showing up every time you... I think pick up a powerup?

In addition, it seems there's some logging of some sort going on since the sound is pretty slow again. But I'm not sure what?

Maybe I'm just unlucky enough to have picked up a debug version... :)
User avatar
Sapphire Wolf
DBB Admiral
DBB Admiral
Posts: 1463
Joined: Mon Nov 24, 2003 3:01 am
Location: Nope.avi , gender: male
Contact:

Post by Sapphire Wolf »

Image
Looks like we found a bug
User avatar
Diedel
D2X Master
D2X Master
Posts: 5278
Joined: Thu Nov 05, 1998 12:01 pm
Contact:

Post by Diedel »

Eeek, that was debug output. Will fix it right away.
User avatar
Skyalmian
DBB Admiral
DBB Admiral
Posts: 1723
Joined: Wed Aug 18, 1999 2:01 am
Location: New Jersey, USA

Post by Skyalmian »

I want to thank you. You've done an excellent job on D2x. 8) :D

-----
Now for the bad news...

1. Weird...the 1600x1200 actually changes the resolution to 1280x960.

2. The bank keys (w, bank left; r, bank right) are still slow.

As for the cube render error I mentioned...that vanished. I did clear out / add command lines from my d2x.ini file earlier:
d2x.ini wrote:-automap1600x1200
-cockpit 3
-fps
-fullscreen
-gl_16bittextures
-gl_alttexmerge
-gl_reticle 0
-gl_stdtexmerge
-hud 0
-ini d2x.ini
-maxfps 30.0
-missiondir missions
-pingstats
-playermessages
-pps 9
-msgcolorlevel 3
-nomusic
-nojoystick
-notitles
-nocdrom
-nofades
-noredundancy
-shortpackets
-sound22k
-subtitles
-tmap fp
-legacyinput
-legacymouse
-legacyrender
User avatar
Diedel
D2X Master
D2X Master
Posts: 5278
Joined: Thu Nov 05, 1998 12:01 pm
Contact:

Post by Diedel »

Rendering errors

-legacyrender was the problem. It switches back to D2's original rendering code and hidden surface detection, which does not work well for complicated level structures.

Generally, you should disable all -legacysomething switches. They all disable advanced features I have built into D2X-W32, reverting to original D2/D2X 0.2.6 style features, and are mainly meant for debugging. My recommended d2x.ini settings are as follows:
d2x.ini wrote:-fullscreen
-sound22k
-nocdrom
-gl_trilinear
-gl_alttexmerge
-playermessages
-noredundancy
-grabmouse
-player <add your personal player profile here>
-nomovies
-gl_reticle 1
Screen Res

I will look into the screen res issue.

Pitch/Bank w/ Keyboard

I am using some num pad keys for pitch/bank, and have no problems with them now. Pitch/bank work fine on my machine (about 2 secs for a full loop/roll, no slow-mo).
User avatar
Skyalmian
DBB Admiral
DBB Admiral
Posts: 1723
Joined: Wed Aug 18, 1999 2:01 am
Location: New Jersey, USA

Post by Skyalmian »

Diedel wrote:have no problems with them now. Pitch/bank work fine on my machine (about 2 secs for a full loop/roll, no slow-mo).
Very well. Quick demo. Don't know if you need to know this, but my framerate is capped at 30.
User avatar
Diedel
D2X Master
D2X Master
Posts: 5278
Joined: Thu Nov 05, 1998 12:01 pm
Contact:

Post by Diedel »

Screen res: solved
pitch/bank speed: solved

Your frame cap was revealing a problem in my input device sample rate limitation code. As you can have "natural" frame cap caused by slow hardware, this had to be fixed, which I have done. New program version online.
Post Reply