Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (539)
Games in Android Showcase (132)
games submitted by our members
Games in WIP (603)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Page Flipping  (Read 2920 times)
0 Members and 1 Guest are viewing this topic.
Offline Silicon_Munky

Senior Newbie




Java games rock!


« Posted 2003-01-07 21:15:36 »

This might not be the best spot to post this, but here is goes anyways. I'm wondering if there are any ways to achieve page-flipping without using BufferStrategy?  Or does anyone know any good BufferStrategy page-flipping examples? I haven't been able to find any, and the sunsite ones are a little bit lacking in the page-flipping department.

Any idea's?

I was thinking of possibly having two frames and flipping back and fourth between them. Might be slow though....
Offline Abuse

JGO Knight


Medals: 15


falling into the abyss of reality


« Reply #1 - Posted 2003-01-07 23:09:40 »

as far as im aware, PageFlipping is only available through BufferStrategy, and will only be used for Windows that are in fullscreen exclusive mode. (atleast on Windows platforms)

Im not sure about solaris/linux/mac implementations - but it wouldn't suprise me if page flipping isn't supported at all under those platforms. (pls correct me if im wrong)

Make Elite IV:Dangerous happen! Pledge your backing at KICKSTARTER here! https://dl.dropbox.com/u/54785909/EliteIVsmaller.png
Offline trembovetski

Senior Devvie




If only I knew what I'm talking about!


« Reply #2 - Posted 2003-01-08 03:28:26 »

There's no way to get the page flipping other than using BufferStrategy.

For the examples, take a look at
http://java.sun.com/docs/books/tutorial/extra/fullscreen/
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Silicon_Munky

Senior Newbie




Java games rock!


« Reply #3 - Posted 2003-01-08 21:38:18 »

hmmm i don't really like the BufferStrategy examples on the sun site. So i've got another question, will BufferStrategy always use page flipping when possible?
Offline zparticle

Senior Devvie




Thick As A Brick


« Reply #4 - Posted 2003-01-09 23:50:01 »

I don't want to hi-jack your thread but I am curious, what exactly happens with a BufferStrategy on laptops? How is the synchronization of the vertical retrace accomplished with an LCD screen?

Offline trembovetski

Senior Devvie




If only I knew what I'm talking about!


« Reply #5 - Posted 2003-01-10 02:28:47 »

How about this:
http://java.sun.com/docs/books/tutorial/extra/fullscreen/example.html

In particular,
http://java.sun.com/docs/books/tutorial/extra/fullscreen/example-1dot4/MultiBufferTest.java
Offline trembovetski

Senior Devvie




If only I knew what I'm talking about!


« Reply #6 - Posted 2003-01-10 02:30:17 »

As I understand, you'll get your 60fps, that's the refresh rate of lcd screens.
Offline erikd

JGO Ninja


Medals: 16
Projects: 4
Exp: 14 years


Maximumisness


« Reply #7 - Posted 2003-01-16 06:00:06 »

Quote
As I understand, you'll get your 60fps, that's the refresh rate of lcd screens.


Well, on my laptop I get more than 180 fps, which could be more if my laptop would be faster.
I have no control over that in my videodrivers (no vblank sync option or something).

Offline trembovetski

Senior Devvie




If only I knew what I'm talking about!


« Reply #8 - Posted 2003-01-17 03:26:41 »

Is that using FlipBufferStrategy? Strange.. Check the capabilities of the BufferStragegy object you get (by using getCapabilities().isPageFlipping()).

It could be that you're actually using blitting instead of flipping because of the hardware restrictions.
Offline mbishop78

Senior Newbie





« Reply #9 - Posted 2003-01-17 14:25:06 »

For what it's worth, the Gameboy Advance is an LCD screen system, yet the code to draw to the screen is still vblank-based.

Michael Bishop
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

rwatson462 (35 views)
2014-12-15 09:26:44

Mr.CodeIt (26 views)
2014-12-14 19:50:38

BurntPizza (56 views)
2014-12-09 22:41:13

BurntPizza (90 views)
2014-12-08 04:46:31

JscottyBieshaar (51 views)
2014-12-05 12:39:02

SHC (67 views)
2014-12-03 16:27:13

CopyableCougar4 (69 views)
2014-11-29 21:32:03

toopeicgaming1999 (129 views)
2014-11-26 15:22:04

toopeicgaming1999 (120 views)
2014-11-26 15:20:36

toopeicgaming1999 (34 views)
2014-11-26 15:20:08
Resources for WIP games
by kpars
2014-12-18 10:26:14

Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!