[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

8.1.2.1 DIVE

The current implementation requires DIVE, so the application is compiled as a PM application. This is done by default (`bin/os2link.cmd' creates automatically a `.def' file). If you want to compile the application as a console application, you have to link it with the $(DO.LINK.CONSOLE.EXE) macro (have a look at `apps/scfreg/scfreg.mak').

Other thing you should keep in mind is that DIVE library (`libDIVE.cpp') uses a couple of resources, so you should not forget to link the resources to your application. Resources can be found in `libDIVE.rc'; this is added to linker dependencies for PM programs in CSDIVE driver makefile, so you also don't need to worry about it (but is still useful to know).

There is one not too pleasant feature related to DIVE (or to acceleration hardware specifics?). If DIVE image should be rescaled (i.e. the scale ratio is not 1:1) DIVE is almost twice as slow if DIVE window (the client rectangle, not the window border) is not on a two-aligned bound (at least such an effect I've got on my Matrox Mystique). If you get low frame rates, try moving the window by one pixel left/right.

To fix this if you use `Video.WindowX' and `Video.WindowY' keywords in the application's configuration file (such as `walktest.cfg') or use `-pos <x>x<y>' command-line switch, the computed X value will be rounded to nearest divisor of 2. However, if you manually move the window it can fall on a odd bound and you'll get twice lower frame rates.

You can use `Video.WindowWidth' and `Video.WindowHeight' keywords in the configuration file to define start window width and height (client window width and height, not counting borders and titlebar). If you won't define it, the DIVE window will be rescaled to the maximum possible integer factor such that window won't be larger than screen. For example, a 320x200 window in 1152x864 resolution will be automatically rescaled at startup to 960x600.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

This document was generated using texi2html