DEVS: Are you interested in a brand-new client?

Forum for alternative clients, mods & discussions on the same.

Moderator: Phades

Re: DEVS: Are you interested in a brand-new client?

Postby cobaltjones » Mon Feb 21, 2011 7:37 pm

dra6o0n wrote:The perp is the mapper functionality in the Ender and Gilbertus clients.
Downloading map images uses bandwidth and apparently lags you.

That doesn't make any sense though, as the lag only happens when there are an abundance of sprites on the screen (scents/crops).
User avatar
cobaltjones
 
Posts: 2725
Joined: Tue Dec 07, 2010 1:27 am

Re: DEVS: Are you interested in a brand-new client?

Postby themendios » Mon Feb 21, 2011 7:55 pm

UPDATE: I am transitioning to SlimDX(open source MDX since MS abandoned it for XNA)/Forms since it's pretty close to XNA but doesn't have the hardware requirements that XNA does. For example, my home laptop has a builtin ATI card and XNA will run, but my work laptop has just an onboard Intel and it won't even attempt to run, just kicks an error and exits. Since XNA wasn't cross-platform all that really means is that it's not XBOX compliant (oh no!)

I thought about just modifying Java rather than transitioning but I've come far enough to be able to dissect just about every piece of the code now and rewrite it.

At this point I've dissected netcode, resources, and the gui implementation. The only big grey area remaining is the sprite animations and how they're triggered, but if I could figure out the rest I got that covered, just haven't gone that far yet.
themendios
 
Posts: 49
Joined: Mon Feb 07, 2011 6:32 pm

Re: DEVS: Are you interested in a brand-new client?

Postby marvi » Mon Feb 21, 2011 8:20 pm

loftar wrote:However, you may want to note that some of the resources contain dynamically loaded Java code which links to the current client's API, which makes it hard to replace satisfactorily.


That's where the funny things ended for me. :\ Though it's totally possible to decompile (it's JVM bytecode) and re-implement these parts on C#... But it means that there is possibility that client will be broken even after minor stealth updates.

Nevertheless, keep up good work.
marvi
 
Posts: 138
Joined: Thu Feb 18, 2010 3:41 pm

Re: DEVS: Are you interested in a brand-new client?

Postby themendios » Tue Feb 22, 2011 3:52 pm

marvi wrote:That's where the funny things ended for me. :\ Though it's totally possible to decompile (it's JVM bytecode) and re-implement these parts on C#... But it means that there is possibility that client will be broken even after minor stealth updates.

Can you give an example of this loftar? I plan on basically ignoring the UI specifics with a wrapper but if it's something more complex than 'the button actually goes over there' then I'd like to know now.
themendios
 
Posts: 49
Joined: Mon Feb 07, 2011 6:32 pm

Re: DEVS: Are you interested in a brand-new client?

Postby loftar » Wed Feb 23, 2011 12:17 pm

agent_orange wrote:Yesterday I've spent some time in profiler. The result:
My bet, that most of CPU consumption is happening because of intensive GC operations.
Main object of garbage collection is haven.Coord class.

I would like more proof before I believe that. ;)

The vast majority of allocated Coord instances are highly transient objects and, as such, are collected by HotSpot's generational collector in virtually no time at all. It might be a different story if you use another VM without a generational collector, but I don't know of any JVM except Dalvik that doesn't have one.
"Object-oriented design is the roman numerals of computing." -- Rob Pike
User avatar
loftar
 
Posts: 9056
Joined: Fri Apr 03, 2009 7:05 am

Re: DEVS: Are you interested in a brand-new client?

Postby loftar » Wed Feb 23, 2011 12:23 pm

themendios wrote:
marvi wrote:That's where the funny things ended for me. :\ Though it's totally possible to decompile (it's JVM bytecode) and re-implement these parts on C#... But it means that there is possibility that client will be broken even after minor stealth updates.

Can you give an example of this loftar? I plan on basically ignoring the UI specifics with a wrapper but if it's something more complex than 'the button actually goes over there' then I'd like to know now.

Some things that I can think of off the top of my mind include the sprites for the crops, some of the more esoteric UI elements (like the village creation dialog or the barterstand boxes) and the dowsing effect. I'm sure there are a few others too, though.
"Object-oriented design is the roman numerals of computing." -- Rob Pike
User avatar
loftar
 
Posts: 9056
Joined: Fri Apr 03, 2009 7:05 am

Re: DEVS: Are you interested in a brand-new client?

Postby dra6o0n » Thu Feb 24, 2011 5:18 am

sabinati wrote:
dra6o0n wrote:
DeadlyPencil wrote:I hope you do succeed with your client. i also hope it runs faster than the current one. its annoying when my computer starts lagging with tons of scents on the screen or lots of crops.

The perp is the mapper functionality in the Ender and Gilbertus clients.
Downloading map images uses bandwidth and apparently lags you.

A friend took the client and edited out the unnecessary stuff and improved the hiding feature to include more detailed stuff and he says the client is smooth enough to have grid in it and not lag you.


you're already downloading the images for your minimap, though... did your friend disable the minimap altogether?

No, its not the ingame minimap, but the mapping functionality of saving individual map images and creating a google map out of that session.
THAT, functionality is causing the client to lag because its constantly re-updating the map.
dra6o0n
 
Posts: 481
Joined: Tue Aug 24, 2010 3:11 am

Re: DEVS: Are you interested in a brand-new client?

Postby sabinati » Thu Feb 24, 2011 6:29 am

lol, ok, if you say so
User avatar
sabinati
 
Posts: 15513
Joined: Mon Jul 13, 2009 4:25 am
Location: View active topics

Re: DEVS: Are you interested in a brand-new client?

Postby cobaltjones » Thu Feb 24, 2011 7:04 am

dra6o0n wrote:No, its not the ingame minimap, but the mapping functionality of saving individual map images and creating a google map out of that session.
THAT, functionality is causing the client to lag because its constantly re-updating the map.

Then why does it only occur around crops and other sprite intensive areas?

I understand you have good intentions but you really have no idea what you're talking about and are just spreading misinformation. Clients with a mapper simply take the minimap image that you've already downloaded from the server and place it on a html map grid. It's not checking for updates or redownloading anything. And even if this WERE the case (it's not), the minimap images are 20kb, which would make your client "lag" for less than a second per new minimap downloaded.

Seriously, just think about what you're typing.
User avatar
cobaltjones
 
Posts: 2725
Joined: Tue Dec 07, 2010 1:27 am

Re: DEVS: Are you interested in a brand-new client?

Postby Jackard » Thu Feb 24, 2011 8:55 am

dra6o0n, wtf nonsense are you spouting now
User avatar
Jackard
 
Posts: 8849
Joined: Sun Jul 12, 2009 6:07 am
Location: fucking curios how do they work

PreviousNext

Return to The Wizards' Tower

Who is online

Users browsing this forum: Claude [Bot] and 0 guests