screen resolution in 1.2 or 1.3

20 views
Skip to first unread message

fredex

unread,
Aug 14, 2010, 7:11:40 PM8/14/10
to Quadra Discussion
wondering if there is any way to choose the window size/screen
resolution?

I'm running it on a 2048x1152 display, and when in windowed mode it's
not very big.

Scanning the sources for a while, I don't turn up anything but some
obscure references to "480" in a context that might refer to a
window's width.

btw, I've compiled 1.2 and 1.3 in Fedora 13 on a VirtualBox VM, where
both run well, but the 1.2 is a major cpu hog: quadra uses about 50%
while X11 uses the remaining 50%. On the other hand, when running 1.3
both X and Quadra don't consume more than around 10%, presumably
because of SDL.

Pierre Phaneuf

unread,
Aug 16, 2010, 5:02:48 PM8/16/10
to quadr...@googlegroups.com, fred....@gmail.com
On Sat, Aug 14, 2010 at 7:11 PM, fredex <fred....@gmail.com> wrote:

> wondering if there is any way to choose the window size/screen
> resolution?
>
> I'm running it on a 2048x1152 display, and when in windowed mode it's
> not very big.
>
> Scanning the sources for a while, I don't turn up anything but some
> obscure references to "480" in a context that might refer to a
> window's width.

It'd be rather difficult, unfortunately. It's something I would have
liked to have, but isn't really possible at all with the current code
base. This is due to how the artwork is used for laying out various
elements of the UI, so if we changed something, we'd have to re-create
a lot of the artwork.

It might be possible to code "pixel doubling" modes, to get 1280x960
or 1920x1400 (tripling), though.

> btw, I've compiled 1.2 and 1.3 in Fedora 13 on a VirtualBox VM, where
> both run well, but the 1.2 is a major cpu hog: quadra uses about 50%
> while X11 uses the remaining 50%. On the other hand, when running 1.3
> both X and Quadra don't consume more than around 10%, presumably
> because of SDL.

That's weird, they should be pretty much equivalent. SDL uses X11
internally, and the Quadra-specific X11 code in 1.2 does things pretty
similarly to SDL... The problem is probably due to the waiting code
not waiting nearly enough. ;-)

I can't remember off-hand where the 1.3 sleeps exactly, but if one
were to find out where that is, I bet this would tell you where the
problem with 1.2 lies very quickly.

--
http://www.google.com/profiles/pphaneuf

Rémi Veilleux

unread,
Aug 23, 2010, 12:05:22 AM8/23/10
to quadr...@googlegroups.com, fred....@gmail.com
Hi,

I have just committed a resize feature in windowed mode. It does not
increase the game resolution: it just stretches the display using a
'nearest neighbor' arbitrary 2d scaling.
The code have been compiled and tested on WinXP 32 only: Pierre, if
you could update and build for *nix and try it out, it would be great.
(I suspect an issue with malloc in video.cpp because of some
mysterious #ifdef but it should be easy to fix.)

Now, getting a gigantic 1680 x 1050 quadra window does take a small
performance hit. All the scaling is done in software and SDL has a
color conversion to apply afterward, so feel free to test and report
back if it gets problematic.

> --
> You received this message because you are subscribed to the Google Groups "Quadra Discussion" group.
> To post to this group, send email to quadr...@googlegroups.com.
> To unsubscribe from this group, send email to quadra-talk...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/quadra-talk?hl=en.
>
>

Reply all
Reply to author
Forward
0 new messages