Fully Functional Chess Game (Performance issues)
Fully Functional Chess Game (Performance issues)
hi there, Planet Chili .
i wanted to use all my C++ "chilian" knowledge so i made this project from scratch using chilli framework 2016 and ofcourse learned from his tutorials (finished old series and some parts of HUGS).
but its still a bit un-complete, there is some rules i didn't implement yet and there is no AI, however its near end.
anyways problem is that, after adding sprites the game Performance diminishes , you can see that clearly when the TILEs highlight.
i don't know what to do about it, so i will post the source here hoping that any of knowledgeable people can tell me where my performance drops!
note: in-game "Turns" disabled for easier debugging
note 2: in-game input is done using mouse left click
i wanted to use all my C++ "chilian" knowledge so i made this project from scratch using chilli framework 2016 and ofcourse learned from his tutorials (finished old series and some parts of HUGS).
but its still a bit un-complete, there is some rules i didn't implement yet and there is no AI, however its near end.
anyways problem is that, after adding sprites the game Performance diminishes , you can see that clearly when the TILEs highlight.
i don't know what to do about it, so i will post the source here hoping that any of knowledgeable people can tell me where my performance drops!
note: in-game "Turns" disabled for easier debugging
note 2: in-game input is done using mouse left click
- Attachments
-
- E Chess.rar
- based on Chili framework 2016
Visual studio community 2015 - (1.03 MiB) Downloaded 115 times
Last edited by eyad on February 26th, 2017, 7:27 pm, edited 1 time in total.
Re: Fully Functional Chess Game (Performance issues)
Although I don't know a lot about C++ yet, I'd like to try to help anyways, but I can't seem to open the .sln file to open the code.
Sorry 'bout that, probably stupidity on my part.
Edit: As albinopapa has pointed out, be sure to Extract the file!
Sorry 'bout that, probably stupidity on my part.
Edit: As albinopapa has pointed out, be sure to Extract the file!
Last edited by Zedtho on March 2nd, 2017, 7:13 am, edited 1 time in total.
Re: Fully Functional Chess Game (Performance issues)
it maybe because you don't have the right version of visual studio or maybe you don't have Directx installed on your pc...
does a clean solution of Chili framework opens with you?Zedtho wrote: but I can't seem to open the .sln file to open the code.
Re: Fully Functional Chess Game (Performance issues)
It says: (Microsoft Visual Studio Popup)
One or more projects in the solution were not loaded correctly.
Please see the Output Window for details.
Output window:
C:\Users\blurred\AppData\Local\Temp\7zO481D58A5\Engine\Engine.vcxproj : error : Project "C:\Users\blurred\AppData\Local\Temp\7zO481D58A5\Engine\Engine.vcxproj" could not be found.
I'm using Visual Studio 2015.
Anyways, someone smarter will come along, so don't waste your error finding time on me .
One or more projects in the solution were not loaded correctly.
Please see the Output Window for details.
Output window:
C:\Users\blurred\AppData\Local\Temp\7zO481D58A5\Engine\Engine.vcxproj : error : Project "C:\Users\blurred\AppData\Local\Temp\7zO481D58A5\Engine\Engine.vcxproj" could not be found.
I'm using Visual Studio 2015.
Anyways, someone smarter will come along, so don't waste your error finding time on me .
-
- Posts: 4373
- Joined: February 28th, 2013, 3:23 am
- Location: Oklahoma, United States
Re: Fully Functional Chess Game (Performance issues)
You have to unzip the files to a folder first, I don't think you can run directly from zip file
If you think paging some data from disk into RAM is slow, try paging it into a simian cerebrum over a pair of optical nerves. - gameprogrammingpatterns.com
Re: Fully Functional Chess Game (Performance issues)
Hmmm, I don't see why the graphics of a chess game should cause a slowdown. When I get some time, I'll take a look at this and see where the issue is. (I am assuming you are building and running in Release, and not Debug).
Chili
Re: Fully Functional Chess Game (Performance issues)
in both cases there is a major slowdown...i think i should mention that , iam using sprites (bmp files)chili wrote:(I am assuming you are building and running in Release, and not Debug).
Re: Fully Functional Chess Game (Performance issues)
Runs just fine for me.
Computer too slow? Consider running a VM on your toaster.
Re: Fully Functional Chess Game (Performance issues)
I get 1~0% CPU usage. Runs smooth.
P.S.
Looking good bro
PPS
Add this code between lines 22 and 23 in Graphics.h to get rid of a bunch of annoying warnings:
#include "ChiliWin.h"
P.S.
Looking good bro
PPS
Add this code between lines 22 and 23 in Graphics.h to get rid of a bunch of annoying warnings:
#include "ChiliWin.h"
- Attachments
-
- Capture.PNG
- (593.44 KiB) Not downloaded yet
Chili
Re: Fully Functional Chess Game (Performance issues)
oh well.... that's so frustrating, i was pretty sure that i tested it with release....
but looks like this isn't the case x_X
anyways, thanks guys for testing it out. and thanks For removing those annoying warnings too
but looks like this isn't the case x_X
anyways, thanks guys for testing it out. and thanks For removing those annoying warnings too