The Daily Click ::. Forums ::. Klik Coding Help ::. Resolution and Runtime
 

Post Reply  Post Oekaki 
 

Posted By Message

LilSpriteX



Registered
  08/05/2003
Points
  28
6th March, 2005 at 01:59:49 -

Whenever I use the "Resize Display to Fit Current Window Size" option, my game slows down considerably. I don't experience this while playing other people's games that use full screen and resizing (Eternal Daughter, for example). Are there some performance options I can change to combat this? I tried changing the color mode of the game, but it slowed down just as much.

Thanks!

 
n/a

Kirby Smith

Resident Slacker

Registered
  18/05/2003
Points
  479

VIP Member360 OwnerWii OwnerThe Cake is a Lie
6th March, 2005 at 02:32:27 -

What you want to do when you go full-screen is to have the game run in a really low resolution, rather than stretch the image to a higher one. If you're stretching the image, it has to run every pixel through a resize and relocate matrix, every frame. When you just run the game in low-resolution, you don't hit that because your just outputting a smaller image to the monitor, which does all the work for you... sorta. Hope that made sense. It's 1:30 Am where I am and I'm tired.

 
XBL Gamertag: Rampant Mjolnir

Johan Hargne (Wartagon)

Lover Of Circys

Registered
  15/06/2003
Points
  1289

Game of the Week WinnerCROBASOFTVIP MemberPS3 OwnerWii OwnerMushroom
6th March, 2005 at 08:35:32 -

"Resize Display to fit current Window Size" does not work for me eithr, it never have. It's why I'm using "Change resolution mode" which comes with MMF and works superb.

 
Music Composer.
http://johan.hargne.se

Crobasoft
www.crobasoft.com

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14586

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
6th March, 2005 at 10:06:29 -

MMF is a lot better with fullscreen modes since it can fullscreen any mode properly. Tgf can do a decent fullscreen but you needed 16bit mode 256 colour mode and 320x200 resolution for it to work. Even then it wont always work on 100% of pc's
(and probably not windows xp at all)

however you can use the display properties object and window object to create a proper fullscreen that is slightly better than simply resizing.

what you need to do is turn on the resize option and make you game resoltion native to the monitor (so the lines are all the same size. try 320x240)
and have it maximise at startup with no menu bar

then create the first frame to be blank
make the events in this order

Always set client area to 640x480 (windows object)
Always create dd object (display properties object)
Always set resoluton to 640x480 (display properites)
Always next frame

that should do it.
first create

 
.

LilSpriteX



Registered
  08/05/2003
Points
  28
6th March, 2005 at 13:13:56 -

Change Resolution Mode worked perfectly. Thanks a ton!

And AndyUK, thanks for the info! Perhaps I should have specified that I'm using MMF.

 
n/a

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14586

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
6th March, 2005 at 20:53:57 -

lol no need for any of what i wrote then.

 
.

DeadmanDines

Best Article Writer

Registered
  27/04/2006
Points
  4758
7th March, 2005 at 07:46:51 -

i don't think the 'create dd' function needs to be an always event - i think you can just do it on 'start of frame'

 
191 / 9999 * 7 + 191 * 7

Hagar

Administrator
Old klik fart

Registered
  20/02/2002
Points
  1692

You've Been Circy'd!Teddy Bear
7th March, 2005 at 10:35:16 -

you cant get a true 512x380 (512 x whatever it is) resolution on 98 and above, which stinks...but old games can still be run in it, so it must be TGF/the display properties object...

 
n/a

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14586

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
7th March, 2005 at 16:09:16 -

Yeah you're right dines.

and the 512x384 crashes The games factory as soon as I click on it.

So its only windows 95 and 3.1? that it will work on?

 
.

DistantJ [FZ Games]



Registered
  02/08/2004
Points
  855
12th March, 2005 at 06:53:37 -

In MMF why not just try checking "Enable DirectX" and "Use VRAM" in the runtime options. Maximising the window will then use your graphics card/video ram to resize the picture rather than the computer's own memory, this method also will even out all the pixels so they're the right size, and run a bilinear filter on the image so it looks nice and smooth rather than blocky.

Although if you're using a lot of large semitransparent objects it can cause slowdown or framerate drop. Although I'm not sure if that's all computers or just my piece of crap graphics card.

 
http://www.fzgames.com
   

Post Reply



 



Advertisement

Worth A Click