Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (408)
games submitted by our members
Games in WIP (293)
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 2033 times)
0 Members and 1 Guest are viewing this topic.
Offline Silicon_Munky

Senior Newbie




Java games rock!


« Posted 2003-01-07 22: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 Coder


Medals: 2


falling into the abyss of reality


« Reply #1 - Posted 2003-01-08 00: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!
Offline trembovetski

Senior Member




If only I knew what I'm talking about!


« Reply #2 - Posted 2003-01-08 04: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!
Try the Free Demo of Droid Assault
Offline Silicon_Munky

Senior Newbie




Java games rock!


« Reply #3 - Posted 2003-01-08 22: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 Member




Thick As A Brick


« Reply #4 - Posted 2003-01-10 00: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 Member




If only I knew what I'm talking about!


« Reply #5 - Posted 2003-01-10 03: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 Member




If only I knew what I'm talking about!


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

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

JGO Knight


Medals: 3
Projects: 3


Maximumisness


« Reply #7 - Posted 2003-01-16 07: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 Member




If only I knew what I'm talking about!


« Reply #8 - Posted 2003-01-17 04: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 15: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.

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars and Titan!

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

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (139 views)
2013-05-17 21:29:12

alaslipknot (148 views)
2013-05-16 21:24:48

gouessej (178 views)
2013-05-16 00:53:38

gouessej (172 views)
2013-05-16 00:17:58

theagentd (182 views)
2013-05-15 15:01:13

theagentd (166 views)
2013-05-15 15:00:54

StreetDoggy (211 views)
2013-05-14 15:56:26

kutucuk (235 views)
2013-05-12 17:10:36

kutucuk (234 views)
2013-05-12 15:36:09

UnluckyDevil (239 views)
2013-05-12 05:09:57
Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
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!
Page created in 0.098 seconds with 20 queries.