Allegiance.exe consuming 100% of CPU all the time

User-to-user help and troubleshooting.
Saxy37
Posts: 53
Joined: Tue Feb 10, 2004 8:00 am

Post by Saxy37 »

Upon starting allegiance (after clicking 'Login' in ASGS) the Allegiance.exe will take up 100% of the CPU, even at the splash screen (before you click on the 'Free Games' button)? Does this happen to everybody?

Thanks,
-Saxy
ImmortalZ
Posts: 5048
Joined: Mon Sep 08, 2003 7:00 am
Location: India
Contact:

Post by ImmortalZ »

Yes.

It halts everything else - it even made my machine do a reboot once /blink.gif" style="vertical-align:middle" emoid=":o" border="0" alt="blink.gif" /> (Just alleg window comes up - music stops - 2 seconds later, I'm staring at the BIOS screen)
Dogbones
Posts: 2721
Joined: Mon Nov 24, 2003 8:00 am
Location: Virginia

Post by Dogbones »

Yep and it is likely because of Allegiance's event loop. Orion posted a possible fix (basically a sleep in the correct spot). I have not had time to try it however.
Image
DOG PROPERTY LAWS:
2. If it's in my mouth, it's mine.
[unless it tastes bad, then it is yours.]
Dogbones
Posts: 2721
Joined: Mon Nov 24, 2003 8:00 am
Location: Virginia

Post by Dogbones »

ImmortalZ wrote:QUOTE (ImmortalZ @ Jan 15 2008, 03:25 PM) Yes.

It halts everything else - it even made my machine do a reboot once /blink.gif" style="vertical-align:middle" emoid=":o" border="0" alt="blink.gif" /> (Just alleg window comes up - music stops - 2 seconds later, I'm staring at the BIOS screen)
Hmm, I've never had it reboot my machine or lock it up for that matter. In windowed mode (or iconified) I have always been able to interact with other apps without issue.
Image
DOG PROPERTY LAWS:
2. If it's in my mouth, it's mine.
[unless it tastes bad, then it is yours.]
Saxy37
Posts: 53
Joined: Tue Feb 10, 2004 8:00 am

Post by Saxy37 »

Ahhh, thanks! I can interact with other apps when allegiance is in windowed mode too, but it takes up whatever CPU is leftover from the other things I'm running. I guess I never noticed this prior to R4 since windowed mode never worked for me, and when allegiance is minimized it doesn't use any CPU.

Thanks!
-Saxy
Orion
Posts: 1733
Joined: Tue Jul 01, 2003 7:00 am
Location: Planet Min·ne·so·ta
Contact:

Post by Orion »

When Allegiance is minimized it does a long Sleep (for about 30 milliseconds if I remember correctly) per frame, my patch basically put in a 1 ms per frame sleep in the screen rendering (which drops CPU usage from ~95% to ~5% on my CPU), and would not effect how much CPU usage Allegiance uses while you're actually playing a game, only when you're in the server/game lobbies.
Last edited by Orion on Wed Jan 16, 2008 3:36 pm, edited 1 time in total.
Image
Wasp
Posts: 1084
Joined: Sun Aug 17, 2003 7:00 am

Post by Wasp »

my cpu only spiked a bit but never got over 70% and that was only for a spike or two. I see no CPU bogging whatsoever.
Kap
Posts: 1466
Joined: Tue Jan 09, 2007 5:20 am
Location: Mexico

Post by Kap »

I blame your sig, wasp.
ImageImage
If A is success in life, then A equals x plus y plus z. Work is x; y is play; and z is keeping your mouth shut. -- Albert Einstein
Dogbones
Posts: 2721
Joined: Mon Nov 24, 2003 8:00 am
Location: Virginia

Post by Dogbones »

Technical Wonder wrote:QUOTE (Technical Wonder @ Jan 16 2008, 10:36 AM) When Allegiance is minimized it does a long Sleep (for about 30 milliseconds if I remember correctly) per frame, my patch basically put in a 1 ms per frame sleep in the screen rendering (which drops CPU usage from ~95% to ~5% on my CPU), and would not effect how much CPU usage Allegiance uses while you're actually playing a game, only when you're in the server/game lobbies.
Orion please repost where that change was supposed to go.

Thanks,

Dog
Image
DOG PROPERTY LAWS:
2. If it's in my mouth, it's mine.
[unless it tastes bad, then it is yours.]
ImmortalZ
Posts: 5048
Joined: Mon Sep 08, 2003 7:00 am
Location: India
Contact:

Post by ImmortalZ »

Onion's fix was for the 100% CPU usage in the lobby. This is a different problem I think.

Also, my CPU usage only hits 50%... because Alleg is single threaded and it hogs only one core. But it does grab the whole system for upto 3 seconds on launch, before showing the initial screen.
Post Reply