Page 7 of 7

Re: I Love Gameboy

Posted: Mon Apr 23, 2012 10:54 pm
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.

Re: I Love Gameboy

Posted: Tue Apr 24, 2012 10:56 am
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

Re: I Love Gameboy

Posted: Tue Apr 24, 2012 11:51 am
by Nixola
The problem is I get 6FPS with LoveJIT

Re: I Love Gameboy

Posted: Tue Apr 24, 2012 1:28 pm
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.

Re: I Love Gameboy

Posted: Tue Apr 24, 2012 6:17 pm
by Technicolour
The most recent version already uses native bitwise when in LuaJIT and Lua bitwise when not.

Re: I Love Gameboy

Posted: Wed Apr 25, 2012 11:06 am
by SiENcE
Thats what i said before and thats why i don't understand Nixola problem.

Re: I Love Gameboy

Posted: Wed Apr 25, 2012 11:07 am
by Nixola
I forgot to write that I've a netbook... :oops:

Re: I Love Gameboy

Posted: Wed Apr 25, 2012 7:27 pm
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

Re: I Love Gameboy

Posted: Wed Apr 25, 2012 8:51 pm
by Jasoco
Nixola wrote:I forgot to write that I've a netbook... :oops:
I'm so sorry. You have my condolences.

Re: I Love Gameboy

Posted: Wed May 02, 2012 9:19 am
by nikigear
Nice one! :awesome: