Im loading an 800x600 png as a background. and the code forces me to scale it up 2x.
just
love.graphics.draw(graphics["bg"], 0, 0)
will produce the image just takeing up 1 corner of the screen. 50% reduction.
im forced to do
love.graphics.draw(graphics["bg"], 0, 0,0,2,2)
which is giving me shitty fps...
any insight
Rendering a 800x600 png, gets shurnk 50&%... why
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: Rendering a 800x600 png, gets shurnk 50&%... why
I think you are using 0.5.0. The drawing location is the middle of the image. So if you draw at (0, 0), that is where the center will be. IIRC using image:setCenter(0, 0) inside load() will fix this for you.
Help us help you: attach a .love.
- TechnoCat
- Inner party member
- Posts: 1611
- Joined: Thu Jul 30, 2009 12:31 am
- Location: Milwaukee, WI
- Contact:
Re: Rendering a 800x600 png, gets shurnk 50&%... why
This is an insight the large image is being cropped by the window edges rather than being scaled.Robin wrote:I think you are using 0.5.0. The drawing location is the middle of the image. So if you draw at (0, 0), that is where the center will be. IIRC using image:setCenter(0, 0) inside load() will fix this for you.
Re: Rendering a 800x600 png, gets shurnk 50&%... why
Thanks, this is correct, and now rendering corectly
Who is online
Users browsing this forum: Amazon [Bot], Bing [Bot] and 6 guests