![]() |
Re: [Announce] Nintendo 64 Emulator for Harmattan/Sailfish
Quote:
like on harmattan terminal. |
Re: [Announce] Nintendo 64 Emulator for Harmattan/Sailfish
is it open source? if yes can you link it?
|
Re: [Announce] Nintendo 64 Emulator for Harmattan/Sailfish
|
Re: [Announce] Nintendo 64 Emulator for Harmattan/Sailfish
sixaxisd run now.
But we have another problems. On harmattan i run these command before. killall bluetoothd /usr/sbin/hciconfig hci0 up /usr/sbin/hciconfig hci0 lm master /usr/sbin/hciconfig hci0 piscan On Sailfish terminal this command make an error: /usr/sbin/hciconfig hci0 up Error is: can t init device hci0: operation not possible due to RF-kill (132) How can i pass this command for exemple? Thanks in advance. |
Re: [Announce] Nintendo 64 Emulator for Harmattan/Sailfish
Quote:
# pkcon install connman-tools # /usr/lib/connman/tools/connmanctl enable bluetooth # /usr/sbin/hciconfig hci0 up |
Re: [Announce] Nintendo 64 Emulator for Harmattan/Sailfish
Quote:
Code:
CFLAGS="-flto -fuse-linker-plugin" Code:
CFLAGS="-march=native -O2 -pipe -fno-ident -flto=3 -fuse-linker-plugin -ggdb" -march=native = Compile for the processor you're actually running at only. -O2 = Level 2 optimization - Most sane optimization. -pipe = Use pipes while compiling. Is a bit faster but needs more RAM (while compiling. Doesn't have any effect on the binarys). -fno-ident = Don't save ident informatins in the binary. They are never used anyway, so save a bit of space. -flto=3 = Use LTO. Use 3 threads at max for it. While 3 seems to be good for my desktop it also seems to be good for the Jolla phone as a rule of thumb is CPU cores + 1. -ggdb = Add gdb debugging information. YOU DON'T WANT THIS! -Wl,-O1 -Wl,--as-needed = more or less default linking flags. Don't ask me what exactly they do... Now if you want to optimize even more try this: Code:
CFLAGS="-march=native -O3 -pipe -fno-ident -flto=3 -fuse-linker-plugin -funroll-loops -ftree-vectorize -ffast-math" -O3 = Optimization level 3 (this is the maximum!) - might create bigger binarys. Might create unstable binarys. Binary might be slower than with -O2, so benchmark, benchmark, benchmark! ;) -funroll-loops = Unroll a loop when the number of iterations are already known at compile time. From the GCC devs: This option makes code larger, and may or may not make it run faster. ... So again: Benchmark, benchmark, benchmark! ;) -ftree-vectorize = I'm not sure what this does and if it does anything on arm at all. Anyway, it should help with the next: -ffast-math = Faster but more unsave math operations. Use with caution! More information about flags: https://gcc.gnu.org/onlinedocs/gcc-4...e-Options.html / https://wiki.gentoo.org/wiki/GCC_optimization Last but not least don't forget to give that flags to all compiling stages (at least to ./configure, make and make install). At best export them before doing anything. Hope that helps. :) //EDIT: On a side note you might want to ship this within the rpm: Code:
<?xml version="1.0" encoding="UTF-8"?> Code:
update-mime-database /usr/share/mime The magic numbers where taken from ROMs I had available. None of them is xdg-openable without this file. Anyhow, my file extensions for the ROMs are f*cked up, so while I'm pretty sure the first magic match is the v64 format I don't know what the second value is. That's one of the reason why I'm using magic numbers instead of file extensions, the other is that there's n64 and N64 and both are different nintendo 64 ROM formats: https://en.wikipedia.org/wiki/List_o...M_file_formats //EDIT²: Also a small bug: While the app UI is sideways it doesn't tell that to the phone, so swipe from side / swipe from top are exchanged. //EDIT³: Tested some games: Banjo & Kazooie: Slideshow Iggy's Reckin' Balls: Crash (well, in fact mupen64plus is still eating a bit CPU but doesn't do anything noticeable) Zelda Ocarina of Time: Massive Z-fighting and lightning issues Legend of Zelda 2 Majora's Mask: Same as Zelda Ocarina of Time + bad performance at the menue (in-game it gets better) + letterboxing issues (wrong color, wrong position) Yoshis Story: Very bad button layout (Thumb above the character is not good) Pilotwings 64: Massive rendering issues General issues: - Sometimes the image gets flipped by 90° - Sometimes the image renders small and stretched - Sometimes both happens at the same time //EDIT⁴: Now that I think about it: For the Zelda games the wrong letterboxing color could be connected to the lightning issues and the wrong ltterboxing position to the z-fighting. It's just a shot into the blue but maybe worth investigating? |
Re: [Announce] Nintendo 64 Emulator for Harmattan/Sailfish
Rather, just use -fno-fat-lto-objects to ensure that you're really using the results of LTO at link time. But LTO is almost useless on any gcc pre 4.9.1, and Jolla is on 4.7... most probably not even worth the effort.
|
Re: [Announce] Nintendo 64 Emulator for Harmattan/Sailfish
Quote:
Code:
[nemo@Jolla ~]$ gcc --version |
Re: [Announce] Nintendo 64 Emulator for Harmattan/Sailfish
would it be possible to make this work with dirk's tohkbd on jolla? :)
|
Re: [Announce] Nintendo 64 Emulator for Harmattan/Sailfish
Quote:
|
All times are GMT. The time now is 15:54. |
vBulletin® Version 3.8.8