TLfres - resolution freedom
- Jasoco
- Inner party member
- Posts: 3725
- Joined: Mon Jun 22, 2009 9:35 am
- Location: Pennsylvania, USA
- Contact:
Re: TLfres - resolution freedom
What I have started just doing is using a framebuffer for the drawing canvas, then resizing the window and scaling the buffer draw to the size of the window. And when going to fullscreen, instead of fullscreening the current window size (And risking having an incompatible window size causing a blank or screwed up screen) it sets the screen size to the size of the current display (By using the getModes() function and using the first result which is the highest compatible resolution) and just scaling the buffer to the size of the screen. No blurring due to forcing the computer to lower the resolution, and if you use "nearest" for the buffer, you can have crisp pixels. Of course this works for me. But YMMV.
- Taehl
- Dreaming in associative arrays
- Posts: 1025
- Joined: Mon Jan 11, 2010 5:07 am
- Location: CA, USA
- Contact:
Re: TLfres - resolution freedom
Ah, but framebuffers are infamous for causing lots of people problems, especially on older hardware and/or with lame drivers.
Earliest Love2D supporter who can't Love anymore. Let me disable pixel shaders if I don't use them, dammit!
Lenovo Thinkpad X60 Tablet, built like a tank. But not fancy enough for Love2D 0.10.0+.
Lenovo Thinkpad X60 Tablet, built like a tank. But not fancy enough for Love2D 0.10.0+.
Re: TLfres - resolution freedom
Isn't this basically the same as Scäle?
- Taehl
- Dreaming in associative arrays
- Posts: 1025
- Joined: Mon Jan 11, 2010 5:07 am
- Location: CA, USA
- Contact:
Re: TLfres - resolution freedom
No. TLfres doesn't replace the drawing calls, so anything you can render in love, you can change res properly with TLfres. Even if more drawing functions are added in later versions of Love or the existing ones change.
Earliest Love2D supporter who can't Love anymore. Let me disable pixel shaders if I don't use them, dammit!
Lenovo Thinkpad X60 Tablet, built like a tank. But not fancy enough for Love2D 0.10.0+.
Lenovo Thinkpad X60 Tablet, built like a tank. But not fancy enough for Love2D 0.10.0+.
- Jasoco
- Inner party member
- Posts: 3725
- Joined: Mon Jun 22, 2009 9:35 am
- Location: Pennsylvania, USA
- Contact:
Re: TLfres - resolution freedom
I know, but they're so convenient I will take that risk.Taehl wrote:Ah, but framebuffers are infamous for causing lots of people problems, especially on older hardware and/or with lame drivers.
I still want to see an overview of how many people here have limits and how far their limits go. But I am taking the risk that most people can support at least 1 or 2 framebuffers. When the game is finished, I will offer an alternative non FB using mode. When the time comes.
I keep meaning to make a test application that will give each person a sort of "framebuffer benchmark" that will list each persons limits up until the game either crashes (Due to running over the limit) or reaches a high enough limit that there's no reason to assume it can't handle anything. For instance, my MBP can support THOUSANDS of moderately sized framebuffers. But I would never use that many.
Re: TLfres - resolution freedom
I think I've gotten to the point where I'm going to have to say screw it to everyone that can't handle a few framebuffers. After using them I simply can't tolerate going without them. +200 FPS with FB's? Yes please.
- BlackBulletIV
- Inner party member
- Posts: 1261
- Joined: Wed Dec 29, 2010 8:19 pm
- Location: Queensland, Australia
- Contact:
Re: TLfres - resolution freedom
Just make sure you make them Po2 compliant, that'll extend your reach a great deal.Lap wrote:I think I've gotten to the point where I'm going to have to say screw it to everyone that can't handle a few framebuffers. After using them I simply can't tolerate going without them. +200 FPS with FB's? Yes please.
- Jasoco
- Inner party member
- Posts: 3725
- Joined: Mon Jun 22, 2009 9:35 am
- Location: Pennsylvania, USA
- Contact:
Re: TLfres - resolution freedom
Time for a survey of the forum and who can and can't support FB's and requires PO2.
- slime
- Solid Snayke
- Posts: 3144
- Joined: Mon Aug 23, 2010 6:45 am
- Location: Nova Scotia, Canada
- Contact:
Re: TLfres - resolution freedom
My friend tried to play my PO2-compliant Snake game that uses framebuffers but it crashed on him, and he has an nvidia 9800 GT. Turns out it's probably because he's still using a RC version of Windows 7. It's not always the age of the computer that's the problem.
/completelyofftopic
/completelyofftopic
- ishkabible
- Party member
- Posts: 241
- Joined: Sat Oct 23, 2010 7:34 pm
- Location: Kansas USA
Re: TLfres - resolution freedom
i have a 9800gtx+ and i have to have po2 complaint frame buffers for it to work, 800x600 fails miserably. I just use 1024x1024 by default. i can go up to 2048x2048 in a single frame buffer, it just has to be po2 compliant. quite honestly i think that Love should automatically re-size the frame-buffer if can't create the one at the desired dimensions. just make it bigger by finding the next power of 2, a simple fix that's used EVERY WHERE.
edit:
other thoughts on GPU specific stuff what are the chances of getting shader support for bump mapping, and other stuff like heat waves? i have been wanting to add fake lighting to my games for a while now. shader effects combined with good particle effects can make for some CRAZY amazing 2D games. you can even make things like 2.5D with just bump mapping and fake lighting alone.
edit:
other thoughts on GPU specific stuff what are the chances of getting shader support for bump mapping, and other stuff like heat waves? i have been wanting to add fake lighting to my games for a while now. shader effects combined with good particle effects can make for some CRAZY amazing 2D games. you can even make things like 2.5D with just bump mapping and fake lighting alone.
Who is online
Users browsing this forum: Bing [Bot] and 1 guest