Share this topic on AskShare this topic on DiggShare this topic on FacebookShare this topic on FurlShare this topic on GoogleShare this topic on LiveShare this topic on MySpaceShare this topic on RedditShare this topic on SlashdotShare this topic on StumbleUponShare this topic on TwitterShare this topic on YahooShare this topic on Google buzz

Author Topic: Fullscreen mode added  (Read 453 times)

0 Members and 1 Guest are viewing this topic.

Offline Devilmarkus

  • Administrator
  • 6128 Plus
  • *****
  • Posts: 1.378
  • Country: de
  • Gender: Male
  • WebCPC / JavaCPC developer
    • CPC-Live website
Hi together,
I added a fullscreen mode for WebCPC!
It's very simple, and not proportional.
So maybe it looks worse on 16/9 displays or other configs.

You can simply enter it by using your mouse.

You can also use ALT & ENTER to toggle it.

The icon disappears after a few seconds and will appear again, when you move your mouse to the upper left corner of the emu display.

Example:

Offline Gryzor

  • Administrator
  • 6128 Plus
  • *****
  • Posts: 2.200
  • Country: gr
  • Gender: Male
  • CPC-Wiki maintainer
    • CPCWiki
Re: Fullscreen mode added
« Reply #1 on: 17:36, 03 November 09 »
Ever progressing...
The implementation with the button is sweet, though, maybe, in windowed mode it should be a button along with the others, at the bottom instead. But I was surprised by the transition speed.

I have a 16:9 monitor and indeed it looks a bit squashed. Since 4:3 monitors are a thing of the past mostly, I think this is something that should probably be fixed. Is it difficult to just add vertical bands at either side?

Also, it runs quite slow - especially with the Filter on. I guess it's not *real* full screen, because my taskbar (win7 x64) is still there...



:Visit now!:

Offline Devilmarkus

  • Administrator
  • 6128 Plus
  • *****
  • Posts: 1.378
  • Country: de
  • Gender: Male
  • WebCPC / JavaCPC developer
    • CPC-Live website
Re: Fullscreen mode added
« Reply #2 on: 17:41, 03 November 09 »
Also, it runs quite slow - especially with the Filter on. I guess it's not *real* full screen, because my taskbar (win7 x64) is still there...

Without filter it would look like crap!

The taskbar cannot disappear when the emulator is launched as applet (JAVA restrictions)
When I launch it locally as executable, the taskbar disappears.

Offline Gryzor

  • Administrator
  • 6128 Plus
  • *****
  • Posts: 2.200
  • Country: gr
  • Gender: Male
  • CPC-Wiki maintainer
    • CPCWiki
Re: Fullscreen mode added
« Reply #3 on: 17:44, 03 November 09 »
Yeah, I suspected something of the sort. At what speed does it run on your system?


:Visit now!:

Offline Devilmarkus

  • Administrator
  • 6128 Plus
  • *****
  • Posts: 1.378
  • Country: de
  • Gender: Male
  • WebCPC / JavaCPC developer
    • CPC-Live website
Re: Fullscreen mode added
« Reply #4 on: 20:22, 03 November 09 »
Yeah, I suspected something of the sort. At what speed does it run on your system?

I've got Intel P-IV, 3 ghz dual-core, w/ 2GB DDR² ram and a nVidia Geforce 6800GT w/ 256mb DDR² ram.
OS: Win XP Pro, SP-II

JavaCPC and also WebCPC is always running @ 50fp/s in all resolutions / with all filters & effects enabled.


Don't forget:
JavaCPC/WebCPC/JEMU need a good soundcard/driver to have the best speed.
Timing is influenced much by soundcard.
That's also a reason why we are still fighting with JavaCPC for Linux.
The Linux-JAVA distribution has poor sound APIs.

Info for coders, who use JEMU:

A simple code in Display.java will show you the fp/s in display:

add:
Code: [Select]

  int mCurrFPS;
  long mLastFPSTime;
  int mNextFPS;

  .... / code /....

  public void doTouchFPS() {
      long time = System.currentTimeMillis();
      mNextFPS++;
      if (time-mLastFPSTime >= 1000) {
          mCurrFPS = mNextFPS;
          mNextFPS = 0;
          mLastFPSTime = time;
      }
  }

  .... / code /....

  protected void paintImage(Graphics g) {

     ..../ code for paintImage /....

     doTouchFPS();
     String fps = "FPS: " + mCurrFPS;
     g.setColor(Color.RED);
     g.drawString(fps, 69, 61);
  }

This will show the framerate on JEMU for example.

Offline Gryzor

  • Administrator
  • 6128 Plus
  • *****
  • Posts: 2.200
  • Country: gr
  • Gender: Male
  • CPC-Wiki maintainer
    • CPCWiki
Re: Fullscreen mode added
« Reply #5 on: 18:19, 08 November 09 »
You've got me all geared up to buy a sound card, damn you :D


:Visit now!:

 

CPC-Topsites