Search found 89 matches

by cag
Sun Oct 22, 2017 8:29 pm
Forum: Suggestion Box
Topic: Reverse up-down control when looking astern?
Replies: 72
Views: 41954

Re: Reverse up-down control when looking astern?

(I play on keyboard. I guess this is not really an issue when using a joystick?) I've played w/ a gamepad from the start (roll, throttle on one stick, pitch, yaw on other), so I never noticed. And w/ view on the 'hat' pad, motion has all but stopped by the time my thumb can change the view. But usi...
by cag
Sat Oct 21, 2017 1:41 am
Forum: Expansion Pack
Topic: OXP Performance tips
Replies: 82
Views: 60105

Re: OXP Performance tips

In frame callbacks (and Timers to a lesser degree), we need to reduce the amount the garbage collection (GC) has to deal with. Whether it's 50 or 200 oxp's loading, every little bit helps. My edits to the Resouces\scripts files were meant more for demonstration, not performance, as these files are o...
by cag
Fri Oct 20, 2017 1:18 am
Forum: Discussion
Topic: Converting XML plists to the old NeXTSTEP (ASCII) format
Replies: 41
Views: 21560

Re: Converting XML plists to the old NeXTSTEP (ASCII) format

Should I replace the old one on box.com?
Maybe just add a link for Python3 version, so Python2 users don't scream and Python3 users can get up & running faster! :cry:
by cag
Tue Oct 17, 2017 11:48 pm
Forum: Suggestion Box
Topic: Scripting requests
Replies: 821
Views: 213719

Re: Scripting requests

D'oh! Perfectly demonstrates the value of a wiki over BB. I must've scrolled past that a number of times, it's so small . Such a declarative and authoritative statement should be writ large , don't you think? :D Anyway, it doesn't appear to matter if you use shipWillDockWithStation or shipDockedWith...
by cag
Tue Oct 17, 2017 2:42 am
Forum: Suggestion Box
Topic: Scripting requests
Replies: 821
Views: 213719

Re: Scripting requests

I'd like programatic access to the data logged by console.writeJSMemoryStats():
JS heap, limit, # collections to date
- really only need the 1st but with fine resolution (not MiB)
- it could be used to monitor rate of production, isolate which areas are responsible
by cag
Tue Oct 17, 2017 1:51 am
Forum: Suggestion Box
Topic: Scripting requests
Replies: 821
Views: 213719

Re: Scripting requests

- be able to provide a destination for data to reduce garbage generation 1) calls to filteredEntities or entitiesWithScanClass return arrays, thus generate garbage - if I could supply an array as a parameter for the result, there'd be no garbage to be collected (ok, that's a bad solution, how about ...
by cag
Mon Oct 16, 2017 6:51 am
Forum: Expansion Pack
Topic: OXP Performance tips
Replies: 82
Views: 60105

Re: OXP Performance tips

@ Norby ... at least your code is a good example how to optimize a similar js. Not really, I rushed it (not enough coffee, no excuse). We cannot re-use the missilesTargetingPlayer array because it gets clobbered by the return from entitiesWithScanClass . It's declaration should just be var missilesT...
by cag
Sat Oct 07, 2017 3:47 am
Forum: Expansion Pack
Topic: OXP Performance tips
Replies: 82
Views: 60105

Re: OXP Performance tips

Next is with Snoopers : 11:42:11.037 [script.javaScript.exception.unexpectedType] ReportJSError (OOJavaScriptEngine.m:203): ***** JavaScript exception (snoopers 2.5): TypeError: strA is undefined ... I did some digging and it turns out that this in not a bug of mine (whew!). Snoopers' event handler...
by cag
Sat Oct 07, 2017 1:51 am
Forum: Expansion Pack
Topic: OXP Performance tips
Replies: 82
Views: 60105

Re: OXP Performance tips

This solve a problem that missiles should lost lock when the player cloaks. ... ... the missile exploded immediately so the code is working well. I think this should be in the core. Forgot to mention that I included the new oolite-cloaking-device-equipment.js code in my new set. Now everyone can pl...
by cag
Sat Oct 07, 2017 1:46 am
Forum: Expansion Pack
Topic: OXP Performance tips
Replies: 82
Views: 60105

Re: OXP Performance tips

@cag: I installed the full pack of your optimized oolite-*.js files and I got some errors. First occur with cim's Comms Pack : Fixed. Stupid mistake, not setting re-used array's length = 0 Next is with Snoopers : I cannot reproduce this. Try my new set and if it recurs, please provide a list of oxp...
by cag
Fri Oct 06, 2017 1:32 am
Forum: Expansion Pack
Topic: OXP Performance tips
Replies: 82
Views: 60105

Re: OXP Performance tips

As promised, part 2, object pools: When trying to re-use arrays/object, you'll encounter a situation where they are shared among functions. If it's just a one-off instance, placing it in a this.$variable works fine. But when there are multiple instances and/or they are dynamically created, we'll nee...
by cag
Thu Oct 05, 2017 11:53 pm
Forum: Expansion Pack
Topic: OXP Performance tips
Replies: 82
Views: 60105

Re: OXP Performance tips

@Astrobe Thanks for the links, I'll check them out. @another_commander Would these files need to replace the original ones as a batch or can we substitute the core files one by one? In the second case, maybe a good way to test would be to simply take the first file, substitute the original one and t...
by cag
Thu Oct 05, 2017 5:02 am
Forum: Suggestion Box
Topic: Reverse up-down control when looking astern?
Replies: 72
Views: 41954

Re: Reverse up-down control when looking astern?

My latest crusade is to reduce the frequency of garbage collection. Those little stutters seem to occur at the worst possible time. Anyway, once I came up for air and started flying again, this is the 1st oxp I loaded. (I really think this should be part of the core, having the controls work the sam...
by cag
Thu Oct 05, 2017 2:52 am
Forum: Expansion Pack
Topic: OXP Performance tips
Replies: 82
Views: 60105

Re: OXP Performance tips

We've all experienced that little stutter during flight, ususally at an inconvienent moment. Miners vaporize splinters instead of scooping them, pirates do the same w/ cargo. And escape pods... "Pilot dies tragically when escape pod impacts shield, Rescuer claims computer malfunction" How's that for...
by cag
Sun Sep 24, 2017 9:30 pm
Forum: Expansion Pack
Topic: OXP Performance tips
Replies: 82
Views: 60105

Re: OXP Performance tips

Great! So much easier then slogging thru BB posts. - broken link: "Use a prototype if necessary, or declare the inner function outside. Src: https://developers.google.com/speed/art ... javascript " https://developers.google.com/speed/articles/optimizing-javascript What I'm having trouble with is to ...