Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Running on Windows 7 64 bit my simple SFML App slower  (Read 1305 times)

0 Members and 1 Guest are viewing this topic.

Tigre Pablito

  • Full Member
  • ***
  • Posts: 226
    • View Profile
    • Email
Running on Windows 7 64 bit my simple SFML App slower
« on: August 23, 2014, 08:04:10 am »
Hi Ladies and Guys from SFML

I´m now using Windows 7 64 bit on Pentium (R) Dual-Core CPU T4500 2.30 GHz, 2 GB RAM

I suposse you don´t remember that some time ago I had the issue that made my SFML (and C#) app crash cos of memory failure (dereferenced but not cleaned up tricky blocks did the stuff), well, when we was playing the match in which we won to the sweeden and everyone were making noise at the office, I was working calmed like an English gentleman and causally I solved that ... (my inner peace, perhaps)

I don´t know why now on the 64 bit system this little app runs about 50% slower in some zones, and about 25% slower in other one (2nd) ... but at the office every SFML app I wrote run perfectly ...

Here they are, -though lately I don´t have much time-, they are quite better that the last time I posted

At the character choosing screen, you can select zone 1 pressing enter, and 2 to 5, pressing those number keys, but please move the cursor to your hero before (beware!: on the release version that option won't be enabled)

FOR 64 BIT SYSTEM
https://www.dropbox.com/s/nq1ga7zpceuu0p1/Sonic%20The%20Hedgehog%2064%20bit%20by%20Pablito.rar?dl=0

FOR 32 BIT SYSTEM
https://www.dropbox.com/s/eb2v5415umf08td/Sonic%20The%20Hedgehog%2032%20bit%20by%20Pablito.rar?dl=0

As always, I would really apreciate your help and advise on this new issue on the "fan made" Sonic cheap imitation games' saga
cheers

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: Running on Windows 7 64 bit my simple SFML App slower
« Reply #1 on: September 13, 2014, 09:43:24 pm »
Quite a dusty topic here, but since nobody has responded I thought, I might take a look.

For the problem you're facing, we can't really help you much, I mean, I don't know what's "fast" and what isn't...

To me it seems that there's a lot of wrong things going on in the code though. The menu screen is flickering strangely, as if you'd be cleaning, drawing and displaying in a strange order or multiple times. Or maybe it's an intended effect, but implemented without frame rate limit...
Next *.BMP is about the worst format you can choose to save images in. Since these are 1:1 copies of some Sonic game (I assume) they probably came in that format already, but I can only advise you to convert them to PNGs, which not only will shrink your image file sizes from 17 MiB to 320 KiB, but it will also allow you to use transparent backgrounds from the beginning.
In-game there seems to shine though a lot of the purple background used in the level image files. For some strange reason you seem to have saved them as *.JPG which again is a bad format for pixely images, since the compression will create some bad artifacts. It would again be better to use a PNG and you'd also be able to remove the pink background and replace it with a transparent color.
As a final note: Don't forget that Sonic the Hedgehog still falls under copyright. Mostly not an issue and it will often fall into "fair use", but still something to keep in mind. ;)

So if you want more help on the original issue, then you need to provide more details.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/