-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lagging on playtime #5
Comments
Hi! |
You can find it attached. I had to compress |
Another reason is that the game choose automatically the integrated graphics if you are on a system that have an integrated and a discrete videocard (some laptops and PCs). |
Thank you Antonio for the valuable comment! I will add it to the installation instructions. |
if you have only an integrated videocard performance isn't good. If you have an integrated and a discrete videocard (like me, Intel integrated and GeForce 840M) you should add the exe path in nvidia control panel to use the latter. |
OK @acoppola but why does version of Batsiaan plays fine on my pc? |
@xasans dunno, can be that Bastian one use SDL 1.2, or it was compiled in a different way, or other stuff (there were a lot of changes). I had slowdowns and I solved that way. |
@acoppola So did you compile on windows or other OS? |
I just improve it minor. But I think we must change mathematics formula so much from float to integer. Because Bastiaan used too much float - double math, but CPU is better calculate integer. For example: Useful link: |
One of reasons I think Bastiaan's compiled version working better is MSVC and Mingw. Now Vi3itor version is built from MSVC and Bastiaan is Mingw, that why his code can use some VLAs. I don't say we should be compile on Mingw and VLAs (which is bad code pattern - not thread safe from C99 not C++) and a lot of AAA game for Windows is compiled with MSVC instead of MingW, but may be this is the reason why performance is dropped (since he has optimized his code on MingW instead MSVC). |
Yeah, it would be interesting to see to what extent VLAs affect the performance. |
Yeah, Array allocated in Stack and Vector is allocated in both Heap and Stack (although it was introduced as alternative Array). When vectors are allocated, do they use memory on the heap or the stack? |
@xasans I have published the binaries, you can download and run it on your machine. An important question: have you tried to decrease the screen resolution? In the binaries above, I set 1280x720 in the config by default. You can try other resolutions supported by your machine (Settings -> Graphics). |
Hello all, I create a discussion, topic: improve performance, so anyone care performance can join this discussion. #6 |
Hello I tried to run the demo but that didn't work then I downloaded the source code and used the ReadMe.md to compile and it still didn't work, I use windows but I didn't find the gameplayfootball.exe at the end of all that. |
Did you switch to Windows branch before compile? |
Yes and I just checked again and it said I have already compiled. |
Have you ever tried my new instruction build on Windows with VS 2019? This build is support Debugging mode. Since debug mode it will generate text log in build folder when game is running |
no I haven't I'll try and use it should i restart the build |
Hey there, i had a doubt regarding this game: So, if i want to create a player, for example a football player with an overall rating of 999 or 1 million ovr, such that he scores from goal to goal and cannot be tackled and is incredibly fast, how would i do that in the game's sources code? How to change the player overall in the game's source code? Please tell me how do i do this, because this has always been my dream modification in a football game, sadly fifa does not allow me to make 1 million ovr players, but i hope this game allows me? Please help me out? |
Hey there, i had a doubt regarding this game: So, if i want to create a player, for example a football player with an overall rating of 999 or 1 million ovr, such that he scores from goal to goal and cannot be tackled and is incredibly fast, how would i do that in the game's sources code? How to change the player overall in the game's source code? Please tell me how do i do this, because this has always been my dream modification in a football game, sadly fifa does not allow me to make 1 million ovr players, but i hope this game allows me? Please help me out? |
Hi @vi3itor i build project for windows but game is lagging on the playing match. Is it normal?
The text was updated successfully, but these errors were encountered: