Beta ptitSeb's Beta Lair


Hi all :)

@ptitSeb: I know, easier said than done, but similarly to your gl4es wrapper, could there be some kind of mechanism which would translate the Saturn's Yamaha FH1 and System Control Unit DSP instructions into our C64x instructions ?

Cheers, Magic Sam
 
Last edited:
I have added a PND for FreeHeroes2. I may push it to the repo, but as there is already one, I don't know if it's worth it.
Also, this is a vanilla build with no changes in the code.
 
Hi all :)

@ptitSeb: I just bought Heroes of Might and Magic 2 at GOG and gave your updated port a try.

Everything seems to be working perfectly ! Thanks for your time and efforts on this one.

Cheers, Magic Sam
 
Tested the new free heroes pnd and I'm unable to run it. For some reason my old appdata folder does not work and just says that I didn't installed the datafile.

@Magic Sam can you check the list of files for folders data and maps?

Maybe I'm missing something.
 
Hi @asimov-solensan :)

Here you go:
pandora:/media/Pandora2/pandora/appdata/fheroes2/data$ ls -altr
total 44952
-rw-r--r-- 1 samuel samuel 28 Mar 19 10:12 README
-rw-r--r-- 1 samuel samuel 43363026 Mar 19 19:15 HEROES2.AGG
drwxr-xr-x 2 samuel samuel 4096 Mar 19 19:15 .
-rw-r--r-- 1 samuel samuel 2598847 Mar 19 19:15 HEROES2X.AGG
drwxrwxrwx 9 root root 4096 Mar 19 19:22 ..
and
pandora:/media/Pandora2/pandora/appdata/fheroes2/maps$ ls -altr
total 7764
-rw-r--r-- 1 samuel samuel 28 Mar 19 10:12 README
-rw-r--r-- 1 samuel samuel 144738 Mar 19 19:13 BELTWAY.MP2
-rw-r--r-- 1 samuel samuel 151972 Mar 19 19:13 DEATHG.MP2
-rw-r--r-- 1 samuel samuel 139387 Mar 19 19:13 BROKENA.MP2
-rw-r--r-- 1 samuel samuel 167026 Mar 19 19:13 DRAGONR.MP2
-rw-r--r-- 1 samuel samuel 659250 Mar 19 19:13 DRAGONW.MP2
-rw-r--r-- 1 samuel samuel 294681 Mar 19 19:14 ENROTH.MP2
-rw-r--r-- 1 samuel samuel 129555 Mar 19 19:14 FORSAKEN.MP2
-rw-r--r-- 1 samuel samuel 294397 Mar 19 19:14 GOODVS.MP2
-rw-r--r-- 1 samuel samuel 565794 Mar 19 19:14 GrimReap.MP2
-rw-r--r-- 1 samuel samuel 381804 Mar 19 19:14 HEROES.MP2
-rw-r--r-- 1 samuel samuel 132267 Mar 19 19:14 HOTSPOT.MP2
-rw-r--r-- 1 samuel samuel 478104 Mar 19 19:14 LOSTCON.MP2
-rw-r--r-- 1 samuel samuel 167585 Mar 19 19:14 LOSTRELI.MP2
-rw-r--r-- 1 samuel samuel 283480 Mar 19 19:14 MIGHTV.MP2
-rw-r--r-- 1 samuel samuel 157809 Mar 19 19:14 MINERALW.MP2
-rw-r--r-- 1 samuel samuel 150474 Mar 19 19:14 MOUNT.MP2
-rw-r--r-- 1 samuel samuel 145916 Mar 19 19:14 OVERLORD.MP2
-rw-r--r-- 1 samuel samuel 56962 Mar 19 19:14 PANDAMON.MP2
-rw-r--r-- 1 samuel samuel 137692 Mar 19 19:14 PYRAMID.MP2
-rw-r--r-- 1 samuel samuel 295377 Mar 19 19:14 REVOLU.MP2
-rw-r--r-- 1 samuel samuel 42440 Mar 19 19:14 RIVER.MP2
-rw-r--r-- 1 samuel samuel 124275 Mar 19 19:14 SCORCH.MP2
-rw-r--r-- 1 samuel samuel 292469 Mar 19 19:14 SEVENL.MP2
-rw-r--r-- 1 samuel samuel 137882 Mar 19 19:14 SHIPW.MP2
-rw-r--r-- 1 samuel samuel 41586 Mar 19 19:14 SLUGFEST.MP2
-rw-r--r-- 1 samuel samuel 148086 Mar 19 19:14 SPELLC.MP2
-rw-r--r-- 1 samuel samuel 274031 Mar 19 19:14 TELEPORT.MP2
-rw-r--r-- 1 samuel samuel 45819 Mar 19 19:14 THECLEAR.MP2
-rw-r--r-- 1 samuel samuel 123396 Mar 19 19:14 TERRAF.MP2
-rw-r--r-- 1 samuel samuel 37315 Mar 19 19:14 THEOTHER.MP2
-rw-r--r-- 1 samuel samuel 134475 Mar 19 19:14 UNDEADA.MP2
-rw-r--r-- 1 samuel samuel 160047 Mar 19 19:14 UNHOLY.MP2
-rw-r--r-- 1 samuel samuel 167571 Mar 19 19:14 VIKINGS.MP2
-rw-r--r-- 1 samuel samuel 272154 Mar 19 19:14 WARIORK.MP2
-rw-r--r-- 1 samuel samuel 124726 Mar 19 19:14 WASTL.MP2
-rw-r--r-- 1 samuel samuel 165981 Mar 19 19:14 WHOAM.MP2
-rw-r--r-- 1 samuel samuel 141330 Mar 19 19:15 WIZLAND1.MP2
-rw-r--r-- 1 samuel samuel 349303 Mar 19 19:15 WINTERL.MP2
drwxr-xr-x 2 samuel samuel 4096 Mar 19 19:15 .
drwxrwxrwx 9 root root 4096 Mar 19 19:22 ..

Cheers, Magic Sam
 
Tested the new free heroes pnd and I'm unable to run it. For some reason my old appdata folder does not work and just says that I didn't installed the datafile.

@Magic Sam can you check the list of files for folders data and maps?

Maybe I'm missing something.
Also, maybe, just remove all files from appdata/fheroes2 then launch 1 time to be sure it extracts it's data file, that put the data from full version of Might & Magic Heroes 2 to data/ and maps/
 
Tested renaming the folder and the pnd isn't creating any folder. But noticed that while the error message shows, in the file manager appeared the folder fheroes2.pickle but disappears as soon as I close the error message.

Then tested crating by hand the folder fheroes.pickle and copying data files. The game launched without problem.

Well just executed the game and seems that campaign mode isn't implemented yet. Knowing this the game loses interest for me, but I will try some maps and tell if there are any problems.
 
Tested renaming the folder and the pnd isn't creating any folder. But noticed that while the error message shows, in the file manager appeared the folder fheroes2.pickle but disappears as soon as I close the error message.

Then tested crating by hand the folder fheroes.pickle and copying data files. The game launched without problem.

Well just executed the game and seems that campaign mode isn't implemented yet. Knowing this the game loses interest for me, but I will try some maps and tell if there are any problems.
You are not using my pnd, but pickle's one (mine create a folder "fheroes2"). I guess you have both pnd. try remove all version and download it again.
 
Hi all :)

@ptitSeb: I'd wait a little more before pushing it to the Repo if I were you. Combats are really slow, they make the sound stutter a lot (on my Rebirth @ 600MHz). I'll play the game again with "sudo perf top", see if I can find something interesting.

Cheers, Magic Sam
[doublepost=1490010636,1490010279][/doublepost]@ptitSeb : and the winner is...
35.63% libSDL-1.2.so.0 [.] BlitNtoNPixelAlpha
15.11% libSDL-1.2.so.0 [.] BlitNtoNKey
10.54% libfluidsynth.so.1 [.] fluid_rvoice_buffers_mix
9.67% libfluidsynth.so.1 [.] fluid_rvoice_dsp_interpolate_none
4.93% libfluidsynth.so.1 [.] fluid_revmodel_processmix
3.52% libfluidsynth.so.1 [.] fluid_rvoice_write
3.19% [kernel] [k] __hrtimer_start_range_ns
2.05% libc-2.9.so [.] memcpy
1.72% libfluidsynth.so.1 [.] fluid_chorus_processmix
1.19% libfluidsynth.so.1 [.] fluid_synth_write_s16

Is there anything you can do about this BlitNtoNPixelAlpha thing ?

Cheers, Magic Sam
 
Ah. On my Gigahertz it wasn't that slow, even in combat, but I did notice this function were consuming some cpu.

I'm already using notaz's SDL, so I guess there is plenty of NEON code.
I'll analyse how things works, and see if I can optimise the rendering loop.
 
Solved my problem. I had the pickle pnd outside menu or desktop an renamed to .pnd.bak but still was loaded into the menu. Can't explain why.

As the game itself I also see that battles are abnormally slow, even moving the mouse on the screen has a huge delay. I'm sure this didn't happen in old versions.
 
I have updated the pnd. This version should have faster batlle (and faster everything else too). There is still "BlitNtoNKey" that is eating some cpu. If it's still too slow on 600MHz I'll have to make a NEON blitter for this one (only with 16bits to 16bits blitting with key, not all the generic cases).
If you can test @Magic Sam and @asimov-solensan .
 
Hi all :)

@ptitSeb: thanks for this new version ! It's much better than the first one, but still a little too slow (it's playable though) @ 600 MHz.

Is optimizing "BlitNtoNKey" with NEON a lot of work ?

Cheers, Magic Sam
 
Last edited:
Hi all :)

@ptitSeb: thanks for this new version ! It's much better than the first one, but still a little too slow (it's playable though) @ 600 MHz.

Is optimizing "BlitNtoNKey" with NEON a lot of work ?

Cheers, Magic Sam
Yes, it's probably some work. But I can check if I can find some quickwin for this specific case.
[doublepost=1490126640,1490114047][/doublepost]I have just updated the version. I have activated RLE for Keyed surface. It's supposed to be faster (it is on my side anyway). Is it better for you @Magic Sam and @asimov-solensan
 
@ptitSeb: the new version segfaults with the following error message:
** (process:7698): CRITICAL **: fluid_synth_noteoff: assertion 'key >= 0 && key <= 127' failed
ALSA lib pcm.c:7843: (snd_pcm_recover) underrun occurred
./runscript.sh: line 64: 7698 Segmentation fault ./fheroes2
Cheers, Magic Sam
 
@ptitSeb: I tried again with a fresh appdata directory, but to no avail, I'm sorry :(

After looking up RLE in Wikipedia, I kind of undertand what it's about, but I don't understand what you mean by "keyed". Do you mean you use this encoding on certain colors only ?

Cheers, Magic Sam
 
Back
Top