New client loader for test server

bluekirby0
Developer
Posts: 707
Joined: Sun Jul 22, 2012 12:11 am

Re: New client loader for test server

Post by bluekirby0 » Sun Jul 07, 2013 3:17 am

Alright I'll try to find the culprit when I have a chance...seems like this has come up before though and has been problematic to duplicate.

bluekirby0
Developer
Posts: 707
Joined: Sun Jul 22, 2012 12:11 am

Re: New client loader for test server

Post by bluekirby0 » Sun Jul 07, 2013 3:49 am

Could you give this build a shot and let me know how it goes? I changed some of the threading code to try to avoid spawning unnecessary threads but it may cause other problems...so some feedback would be helpful.
Attachments
ffxi-boot_mod3.1.3_beta.zip
(20.73 KiB) Downloaded 510 times

xipies
Posts: 119
Joined: Thu Aug 02, 2012 11:29 pm

Re: New client loader for test server

Post by xipies » Sun Jul 07, 2013 9:43 pm

bluekirby0 wrote:ffxi-boot_mod3.1.3_beta.zip
Great! I'll try this out and report back.

xipies
Posts: 119
Joined: Thu Aug 02, 2012 11:29 pm

Re: New client loader for test server

Post by xipies » Sun Jul 07, 2013 10:27 pm

Two of us are XPing in Ro'Maeve, page 1 FOV on classic server, with 3.1.3beta, and both triggered 100% CPU at nearly the same instant after about 30 minutes.
Me with 3 instances, other player with 4 instances.

Other info:
I hadn't been using /search at/near the time 100% cpu was triggered. I had used it after logging in on all 3 chars, which didn't trigger 100% cpu. I had zoned at least once on each char near when i logged in.

According to ProcExp, thread count for the instance of my char in Ro'Maeve is fluctuating between ~29-38.

CPU usage does not appear to gradually go up, like a leak, instead it appears to suddenly "spike" at 100% usage for the rest of the time ffxi-boot is running.

bluekirby0
Developer
Posts: 707
Joined: Sun Jul 22, 2012 12:11 am

Re: New client loader for test server

Post by bluekirby0 » Sun Jul 07, 2013 11:11 pm

Odd...there should only be about 3 threads running per character...I didn't write the original program so I have to work out the cause in a vastly different programming style from my own.

xipies
Posts: 119
Joined: Thu Aug 02, 2012 11:29 pm

Re: New client loader for test server

Post by xipies » Mon Jul 08, 2013 12:38 am

I checked current non-beta version 3 and ProcExp also reports thread counts fluctuating in the 30's when CPU is not at 100%, running a single instance.

bluekirby0
Developer
Posts: 707
Joined: Sun Jul 22, 2012 12:11 am

Re: New client loader for test server

Post by bluekirby0 » Mon Jul 08, 2013 9:58 am

I would expect the beta to have a lower thread count, but its also using windows native threading with which i am not intimately familiar, so maybe that thread count is normal for the apartment threading model that windows uses. I'll mess with it and see if I can account for all of the threads. Perhaps some are being spawned on a loop that I missed before.

Tom_Neverwinter
Posts: 61
Joined: Mon Dec 24, 2012 3:47 pm

Re: New client loader for test server

Post by Tom_Neverwinter » Mon Jul 08, 2013 12:31 pm

Curious would the analyze feature in visual studio be of any help?
since its set for CPU monitoring by default it may help significantly.

I usually run it on the game server to see if any major improvements have been made.

xipies
Posts: 119
Joined: Thu Aug 02, 2012 11:29 pm

Re: New client loader for test server

Post by xipies » Mon Jul 08, 2013 10:53 pm

It's been a while since I looked at the boot source, and may have been from a different boot loader. Does ffxi-boot do anything with network besides override the server IP lookup?

bluekirby0
Developer
Posts: 707
Joined: Sun Jul 22, 2012 12:11 am

Re: New client loader for test server

Post by bluekirby0 » Tue Jul 09, 2013 9:53 am

Since v3 its based on the mXI source rather than ffxi-boot because of issues with EU support and timing out when creating a new character. It sends the packets for login or account creation, so yes, it does other network stuff.

Post Reply