I Love Gameboy

Showcase your libraries, tools and other projects that help your fellow love users.
Technicolour
Prole
Posts: 24
Joined: Sat Sep 24, 2011 12:22 am

Re: I Love Gameboy

Post by Technicolour »

Nixola wrote:I don't support canvases too, but with the ImageData version I have no more than 6 FPS, so I don't mind if you don't update it
Yeah, the ImageData one has pure-Lua bitwise (Which I'm fairly sure involves strings *cringe*), which given an emulator is pretty much entirely bit crunching, is a huge speed loss.
User avatar
SiENcE
Party member
Posts: 797
Joined: Thu Jul 24, 2008 2:25 pm
Location: Berlin/Germany
Contact:

Re: I Love Gameboy

Post by SiENcE »

Technicolour wrote:
Nixola wrote:I don't support canvases too, but with the ImageData version I have no more than 6 FPS, so I don't mind if you don't update it
Yeah, the ImageData one has pure-Lua bitwise (Which I'm fairly sure involves strings *cringe*), which given an emulator is pretty much entirely bit crunching, is a huge speed loss.
As i said. My ImageData fix has nothing to do with the bitwise compatibility fix for normal love (without JIT). Just take my version with a LoveJIT and it should run without speed problems.

Or just disable the following in the main.lua.

Code: Select all

bit = require 'numberlua'
band = bit.band
bor = bit.bor
bxor = bit.bxor
bshr = bit.rshift
bshl = bit.lshift
cheers
User avatar
Nixola
Inner party member
Posts: 1949
Joined: Tue Dec 06, 2011 7:11 pm
Location: Italy

Re: I Love Gameboy

Post by Nixola »

The problem is I get 6FPS with LoveJIT
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
User avatar
SiENcE
Party member
Posts: 797
Joined: Thu Jul 24, 2008 2:25 pm
Location: Berlin/Germany
Contact:

Re: I Love Gameboy

Post by SiENcE »

I get 83-33 fps with LoveJIT 0.7.2 and 15-8fps Love 0.72.

But nevertheless, just remove the bit thing.
Technicolour
Prole
Posts: 24
Joined: Sat Sep 24, 2011 12:22 am

Re: I Love Gameboy

Post by Technicolour »

The most recent version already uses native bitwise when in LuaJIT and Lua bitwise when not.
User avatar
SiENcE
Party member
Posts: 797
Joined: Thu Jul 24, 2008 2:25 pm
Location: Berlin/Germany
Contact:

Re: I Love Gameboy

Post by SiENcE »

Thats what i said before and thats why i don't understand Nixola problem.
User avatar
Nixola
Inner party member
Posts: 1949
Joined: Tue Dec 06, 2011 7:11 pm
Location: Italy

Re: I Love Gameboy

Post by Nixola »

I forgot to write that I've a netbook... :oops:
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
Technicolour
Prole
Posts: 24
Joined: Sat Sep 24, 2011 12:22 am

Re: I Love Gameboy

Post by Technicolour »

Nixola wrote:I forgot to write that I've a netbook... :oops:
Yeah, the emulation code is fairly CPU hungry, it executes up to a million instructions and draws over 8000 scanlines a second. Sorry :C
User avatar
Jasoco
Inner party member
Posts: 3726
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: I Love Gameboy

Post by Jasoco »

Nixola wrote:I forgot to write that I've a netbook... :oops:
I'm so sorry. You have my condolences.
nikigear
Prole
Posts: 1
Joined: Wed May 02, 2012 9:14 am

Re: I Love Gameboy

Post by nikigear »

Nice one! :awesome:
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest