• Announcements

    • khawk

      Download the Game Design and Indie Game Marketing Freebook   07/19/17

      GameDev.net and CRC Press have teamed up to bring a free ebook of content curated from top titles published by CRC Press. The freebook, Practices of Game Design & Indie Game Marketing, includes chapters from The Art of Game Design: A Book of Lenses, A Practical Guide to Indie Game Marketing, and An Architectural Approach to Level Design. The GameDev.net FreeBook is relevant to game designers, developers, and those interested in learning more about the challenges in game development. We know game development can be a tough discipline and business, so we picked several chapters from CRC Press titles that we thought would be of interest to you, the GameDev.net audience, in your journey to design, develop, and market your next game. The free ebook is available through CRC Press by clicking here. The Curated Books The Art of Game Design: A Book of Lenses, Second Edition, by Jesse Schell Presents 100+ sets of questions, or different lenses, for viewing a game’s design, encompassing diverse fields such as psychology, architecture, music, film, software engineering, theme park design, mathematics, anthropology, and more. Written by one of the world's top game designers, this book describes the deepest and most fundamental principles of game design, demonstrating how tactics used in board, card, and athletic games also work in video games. It provides practical instruction on creating world-class games that will be played again and again. View it here. A Practical Guide to Indie Game Marketing, by Joel Dreskin Marketing is an essential but too frequently overlooked or minimized component of the release plan for indie games. A Practical Guide to Indie Game Marketing provides you with the tools needed to build visibility and sell your indie games. With special focus on those developers with small budgets and limited staff and resources, this book is packed with tangible recommendations and techniques that you can put to use immediately. As a seasoned professional of the indie game arena, author Joel Dreskin gives you insight into practical, real-world experiences of marketing numerous successful games and also provides stories of the failures. View it here. An Architectural Approach to Level Design This is one of the first books to integrate architectural and spatial design theory with the field of level design. The book presents architectural techniques and theories for level designers to use in their own work. It connects architecture and level design in different ways that address the practical elements of how designers construct space and the experiential elements of how and why humans interact with this space. Throughout the text, readers learn skills for spatial layout, evoking emotion through gamespaces, and creating better levels through architectural theory. View it here. Learn more and download the ebook by clicking here. Did you know? GameDev.net and CRC Press also recently teamed up to bring GDNet+ Members up to a 20% discount on all CRC Press books. Learn more about this and other benefits here.
Sign in to follow this  
Followers 0
lightxbulb

Super slow compiling?

8 posts in this topic

Hi!

Since a few days ago I've been experiencing some extreme slow compile on Visual C++. I think that even when I try to play a music file with vlc it starts extremely slow - but it could be just me. The games I have start up normally though and I'm not experiencing any fps drop... I've noticed that if I restart the PC the compile time goes back to normal. Any advice to what may be causing this and how to fix it?

 

P.S. The ram usage is under 50% when that happens and the CPU may be even at 0% and at the same time I am waiting inexplicably long for some simple thing like properties showing up... Seems like Windows is "slow" and only at doing some tasks. My HDD works fine IMO as copying has a normal speed. The last things I did before this happened was install some custom windows themes, installed skype and copied around 100Gb from my external HDD - btw I still have around 500Gb free space (all of these could have just coincided with that).

Edited by lightxbulb
0

Share this post


Link to post
Share on other sites

Have you kept an eye on the ram and cpu as your programs are running? is it possible you have a memory leak eating all of your memory up ? Bar that it could be anything, virus, hardware change, just do the usual scans and such ! - a favorite of mine is ccleaner ;)

1

Share this post


Link to post
Share on other sites

Do you keep your operating system up-to-date?  Do you have virus/malware protection that's up-to-date and run on a regular basis?  Have you recently changed any hardware?

 

The last things I did before this happened was install some custom windows themes

What sort of custom windows themes?  While some people don't experience any problems, software like WindowBlinds and AstonDesktop can sometimes cause instability or hog resources -- especially if you're using a more complex theme.  Microsoft go to great lengths to ensure the default Explorer shell for Windows is compatible with almost any reasonably modern hardware you might be using, but the companies behind these sorts of theming packages just don't have the same level of resources to test on such a wide variety of set-ups.  If that (or something similar) is the type of theme you're talking about it could potentially be the culprit.

1

Share this post


Link to post
Share on other sites

Have you kept an eye on the ram and cpu as your programs are running? is it possible you have a memory leak eating all of your memory up ? Bar that it could be anything, virus, hardware change, just do the usual scans and such ! - a favorite of mine is ccleaner ;)

The CPU and the Ram are not the problem. And it's not a memory leak from what I see as my free Ram is almost the same as when I start up my PC (under 50% used Ram). I'll try CCleaner now. Thanks for the advice. 

 

Do you keep your operating system up-to-date?  Do you have virus/malware protection that's up-to-date and run on a regular basis?  Have you recently changed any hardware?

I haven't changed any hardware. I have win7 and it's up to date. I really didn't install an anti-virus program sleep.png  but I try to download safe things, so only Win Defender on this side and it didn't detect anything.

For the themes I used universal theme patcher.

  The problem looks really like a memory leak issue because the longer the PC is on, the slower it starts up some things - though the Ram stays the same so it can't be a mem leak. And it's kind of odd how only some things start really slowly - I'm basically waiting for some trivial thing like properties to show up. I thought it might be an HDD issue but the HDD seems to work fine (normal copy speed).

 

  And it's not like I am compiling something great - just an exercise:

#include <iostream>
using namespace std;

class Date
{
private:
	int day, month, year;
public:
	Date(int inputDay, int inputMonth, int inputYear)
		:day(inputDay), month(inputMonth), year(inputYear){}

	Date& operator ++ ()
	{
		++day;
		return *this;
	}

	Date& operator -- ()
	{
		--day;
		return *this;
	}

	void displayDate()
	{
		cout << day << " / " << month << " / " << year << endl;
		return;
	}
};

int main()
{
	Date myDate(25, 7, 2013);
	myDate.displayDate();
	++myDate;
	myDate.displayDate();

	cin.ignore();
	return 0;
}

 

Now, just after I started my PC it needed 1s to compile. Yesterday just before I shut down my PC it needed like 30s to compile and it stopped with great delay at every possible point.

Should I defrag my HDD(I don't see how this will help), should I check it for errors? Do you have any idea what might be causing this?

Thanks a lot guys, I really appreciate your help smile.png

0

Share this post


Link to post
Share on other sites

1. The most common problem that causes delays in compiling is your swap file. If you opened lots of programs after your last restart, and swap file got bigger few times, then anything you do will take exponentially longer (not just compiling) - it's simply an OS feature.

 

2. Also, compiling might coincide with some other heavy process/service being run (e.g. stuff like Indexing service or any other).

 

3. This is C++

1

Share this post


Link to post
Share on other sites

The odd thing is that this started just a few days ago. Never before have I experienced anything similar.

0

Share this post


Link to post
Share on other sites

To rule out any other potential SW, are you running only the Visual Studio or are there other apps (FireFox, Outlook, Photoshop, 3dsmax, ...) ?

 

I am asking since many years ago I suddenly experienced a very weird, regular (every 2 seconds) FPS dropdown in my 3D engine and spent 2 days profiling.

 

Turned out, it wasn't really my 3D engine but the FireFox [running in backgr] update that forced a CPU spike every 2 seconds. But since I've had the same set of tabs open for few months I didn't realize it until after one restart I chose not to run FireFox and the CPU spikes suddenly stopped.

 

It was an unfortunate coincidence that I was exactly in the middle of implementing A*, so my first hunch was that it's the A* causing the CPU spikes.

 

 

I'd try running just Visual Studio [for few days] to make sure it's not some other background app/process...

1

Share this post


Link to post
Share on other sites

I had my browser, explorer and vlc up with VS but I had them this morning too so I do not think that is it. Hopefully today I am not experiencing such a thing even now (and the PC has been on the whole day) - it may be that CCleaner fixed things - not sure, will see if I have nay problems tomorrow.

Thanks for the valuable advice guys!smile.png

P.S . I have not been running many programs on the PC though so it may be some of the apps I ran yesterday. Today it's working just fine(no delay at all). I suspect skype - as it was the last thing I installed and I used it the whole day yesterday - I haven't even started it today.

Edited by lightxbulb
0

Share this post


Link to post
Share on other sites

Well, Skype has become an obnoxious resource hog, lately.

 

I routinely find it occupies up to 250 MB of RAM (regardless of no active communication with anyone) and alt-tabbing to it takes sometimes even up to 5 seconds.

 

Especially if it "volunteers" you for an update, I always restart Windows afterwards, since the Skype Update routinely messes up the Windows [which is to be expected, though undesired].

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0