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

Author Topic: (with CODE) my game runs very slow on 64 bit system with 2.3 GHz processor  (Read 2754 times)

0 Members and 1 Guest are viewing this topic.

Tigre Pablito

  • Full Member
  • ***
  • Posts: 226
    • View Profile
    • Email
Hello, Dear Ladies and Guys from SFML

Last time i asked you about this issue, but i didn´t include any code, as some of you said.

My problem still is that my poor Sonic game runs very slow on my 64 bit Windows 7 system Pentium(R) Dual Core T4500 2.3 GHz 2.0 GB RAM.
On the same system, but on a 32 bit windows 7 this issue did not occur at all. Neither on another 64 bit system with 3.5 GHz processor. So I suppose and hope it can be solved.
I know the app demands the processor so much, but on the 32 bit system it was the same.

As some of you told me, i tried with drivers, and i failed (or my system was missing none). Here i give you the link to the .RAR file that contains the project file structure for C#.Net with which you can build the .EXE, and the folder tree containing the .EXE, the 64 bit SFML DLLs and the DATA FILES folder. If you change the DLLs by the 32 bit ones on the Debug folder where the .EXE is and in the References node, you can run it on a 32 bit machine.

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

I ask you please to assume that i manage to program more or less fine, and for other matters related to systems and PC handling i'm quite fool. I´m trying to be sinceer.

I don't know if the code is too much or not. It is entirely in English. Please tell me if there is anything more I can do for you to be able to help me better.

I would apreciate your help very much. Thanks

Pablo
from Bs As - Argentina

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: (with CODE) my game runs very slow on 64 bit system with 2.3 GHz processor
« Reply #1 on: November 28, 2015, 10:12:15 am »
Well obviously the whole project is too much source code. A minimal and complete example is usually one file that contains the int main() function and at most 200 lines of code.

The game runs "fine" on my PC, so I'm not sure what kind of slowness you are experiencing.
Did you try running it in release mode?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Tigre Pablito

  • Full Member
  • ***
  • Posts: 226
    • View Profile
    • Email
Re: (with CODE) my game runs very slow on 64 bit system with 2.3 GHz processor
« Reply #2 on: November 28, 2015, 12:31:40 pm »
Hi eXpl0it3r and People

i have just run the app in Release mode and it's just a bit faster, but too much under the expected 50 FPS, i calculate a bit less than a half  :P

i think the main problem is that my processor is 2.3 GHz, cos in a PC with 64 bit system but with 3.5 GHz processor it ran fine. Also on my same machine when it had the 32 bit Win 7 it did.  :-[

Could it be something of the DLLs or some strange configuration on the system, or of compatibility? It's very strange that on my same machine but with a 32 bit Win 7 the game run fine and now on 64 bit Win 7 it doesn't.

Well, i'll try to reduce the code ... i don't know how i will do with the methods that are called in the main loop that are quite long ... does the reduced sample have to run Ok or just I have to give the main code itself?

Thanks  ;D

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: (with CODE) my game runs very slow on 64 bit system with 2.3 GHz processor
« Reply #3 on: November 28, 2015, 05:41:38 pm »
If it's a problem with SFML then it can be reproduced in a small example, which obviously needs to compile by itself.

What's your GPU?
Also you still haven't explained what you mean with "very slow". Low FPS? Slow movement?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Tigre Pablito

  • Full Member
  • ***
  • Posts: 226
    • View Profile
    • Email
Re: (with CODE) my game runs very slow on 64 bit system with 2.3 GHz processor
« Reply #4 on: November 28, 2015, 08:15:31 pm »
well, i'll try to do a reduced sample and post it soon
perhaps it could be a problem with SFML but just for slower processors with 64 bit system, with due respect
because on the same hardware with 32 bit system it didn't happen
i attach the screenshot with my GPU info
yes, movement (and also FPS i suppose) is very slow, for example, on a jump it takes several seconds from take off to landing, and i also feel that keyboard delays on respond
Thanks

Tigre Pablito

  • Full Member
  • ***
  • Posts: 226
    • View Profile
    • Email
Re: (with CODE) my game runs very slow on 64 bit system with 2.3 GHz processor
« Reply #5 on: November 29, 2015, 01:31:14 am »
Hello Ladies and Guys,

I have just finished the Sonic Reduced Sample  :P. the jump and spindash functions were lost in the reduction  :(. but you can walk and run up a ramp. the problem is still there. i would say it's the same speed than the complete version  ??? ... so the app logic processor demand wasn't the problem?

link to the reduced sample
https://www.dropbox.com/s/vypsstos7mxahfz/Sonic%20REDUCED%20SAMPLE.rar?dl=0

i removed almost everything and left just the minimal classes each in 1 or 2 files. There is the player in the 1st level, empty but just the ground. it can't be reduced any more. the Level and Player classes are quite large  :o.
i would say the only file i think would be of interest is 'CLASS LEVEL', which contains the game main loop (in the RunGameLevel() method). but if i don't see wrong, there are not any errors.  :-\

i appreciate your help. please continue helping me to solve this if possible, cos modestly i like programming and SFML very much.
thanks

 

anything