Search found 85 matches

by cag
Thu Aug 08, 2019 7:33 am
Forum: Expansion Pack
Topic: OXP Performance tips
Replies: 82
Views: 51404

Re: OXP Performance tips

I've updated the Resources-Scripts with some minor housekeeping. The link remains: https://www.dropbox.com/s/cudwuq8d56epcm2/Resources-Scripts.zip?dl=0 The highest count before the log statement was removed: ship died, __handler_reuse = 1261, __comms_reuse = 57 ship died, __handler_reuse = 1361, __c...
by cag
Sat Apr 20, 2019 5:16 am
Forum: Expansion Pack
Topic: [Beta] Release of Telescope 2.0
Replies: 6
Views: 3356

Re: [Beta] Release of Telescope 2.0

[*]What's the status of this rewrite? Stable, pending any evidence to the contrary :) [*]Is it already good enough for regular players to use it? I believe so, but with any Beta, you should backup your saved games, just in case. It should work fine going forward but if you decide to revert back to ...
by cag
Fri Oct 19, 2018 5:00 am
Forum: Expansion Pack
Topic: OXP Performance tips
Replies: 82
Views: 51404

Re: OXP Performance tips

1) that seems involved (!) Could you be more specific? 2) shouldn't compilers take care of this sort of thing? Except, hold on, it's an interpreted language. But perhaps there is some sort of JIT (as I believe it is called) . . Perhaps, maybe; I don't really know. We're not using the most up to dat...
by cag
Thu Jul 19, 2018 4:34 am
Forum: Suggestion Box
Topic: Reverse up-down control when looking astern?
Replies: 72
Views: 38159

Re: Reverse up-down control when looking astern?

I've updated it to be version aware (d'Oh)

IF it checks out, you won't have to continue with 2 versions ...

https://www.dropbox.com/s/4609bj3d2btwz ... l.oxz?dl=0
by cag
Wed Jul 04, 2018 3:04 am
Forum: Suggestion Box
Topic: Reverse up-down control when looking astern?
Replies: 72
Views: 38159

Re: Reverse up-down control when looking astern?

There is something about the reverse control thing that doesn't feel right.. (I play on keyboard. I guess this is not really an issue when using a joystick?) When you dive/climb or rotate (diving/climbing is really also rotating) and then let go of the keys, you don't stop rotating immediately. Thi...
by cag
Fri Jun 29, 2018 1:35 am
Forum: Expansion Pack
Topic: OXP Performance tips
Replies: 82
Views: 51404

Re: OXP Performance tips

The tip I gave phkb, and I realized then that although it is implicit in what was already exposed, it is not obvious: From: this.$rand = function(max) { return Math.floor((Math.random() * max) + 1); } To: this.$rand = function $rand(max) { var that = $rand; var floor = (that.floor = that.floor || M...
by cag
Thu May 10, 2018 12:04 am
Forum: Expansion Pack
Topic: OXP Performance tips
Replies: 82
Views: 51404

Re: OXP Performance tips

By itself, there's no real difference (~40 nanosec). It stores a 1 hop property reference in another 1 hop reference. If you're going to reference the player's ship more than once in a function, use var ps = player.ship; so you save one hop everytime you use it (ps.target, ps.speed, etc.) The saving...
by cag
Sun May 06, 2018 3:42 am
Forum: Expansion Pack
Topic: OXP Performance tips
Replies: 82
Views: 51404

Re: OXP Performance tips

The new version of Telescope is about 35% faster than 1.13 (14% faster than 1.15) and garbage production was decreased by over 70% vs 1.15 (1.13 & 1.15 have similar rates). Here are some of the techniques I used to improve performance: Take out the garbage We've talked recently in this thread about ...
by cag
Sun May 06, 2018 1:43 am
Forum: Expansion Pack
Topic: OXP Performance tips
Replies: 82
Views: 51404

Re: OXP Performance tips

I've ported some of the core vector & quaternion functions into JScript. ... You can DL the file here: https://www.dropbox.com/s/sojm6ulor13s0kz/vector_fns.zip?dl=0 I've updated vector_fns to add 2 variants on 'angle_between', namely '_angle_between_unitV' and '_angle_between_two_unitV'. [DL link i...
by cag
Fri May 04, 2018 3:34 am
Forum: Expansion Pack
Topic: [Beta] Release of Telescope 2.0
Replies: 6
Views: 3356

Re: [Beta] Release of Telescope 2.0

(Although it says shipData, I actually think it's effectdata that's to blame) You're quite correct, it is the effectdata. If you look inside the oxz, there is an entire folder devoted to the subject (/effect data). The tl;dr version is that oolite cannot create visual effects from shipdata, so I ha...
by cag
Thu May 03, 2018 10:39 pm
Forum: Expansion Pack
Topic: [Beta] Release of Telescope 2.0
Replies: 6
Views: 3356

Re: [Beta] Release of Telescope 2.0

Norby wrote: Nice job! :)
Thanks.

version 2.0.1: added compatibility fixes for Carriers (thanks Rustem), EscortDeck & Towbar
by cag
Thu May 03, 2018 3:41 am
Forum: Expansion Pack
Topic: [Beta] Release of Telescope 2.0
Replies: 6
Views: 3356

[Beta] Release of Telescope 2.0

What started as frame rate optimization has turned into a full re-write! (I kept breaking things :cry: ) I ended up creating not one but two additional oxp's <sigh> (when I go off on a tangent, I can become obtuse :roll: ) There's fps_monitor, which I use to mimimize impact by scaling operations bas...
by cag
Thu May 03, 2018 3:33 am
Forum: Expansion Pack
Topic: [Beta] Release of Station Options 1.0
Replies: 0
Views: 4434

[Beta] Release of Station Options 1.0

This oxp allows authors of oxp's with many options to allow easy access when docked at a station. Options can be grouped into pages, ie. screens, with as many as 20/page before the list scrolls (if you keep you spiel short). Each option has its own screen with unlimited text. Supported are 7 types w...
by cag
Tue Apr 10, 2018 9:22 pm
Forum: Expansion Pack
Topic: shader bugs, attn: LittleBear, UK_Eliter, spara, Griff, phkb, Dr. Nil
Replies: 0
Views: 3416

shader bugs, attn: LittleBear, UK_Eliter, spara, Griff, phkb, Dr. Nil

I stumbled across these, don't think they break anything. But I'm about to rip out the part of the script that found them, so here they are: LittleBear File H:\oolite.org-oxzs\Blackmonks_2.2.1.oxz: Error! shipdata.plist line 852 for key "blackmonk_gunship_turret": Bad texture reference [1] for unifo...
by cag
Thu Mar 22, 2018 9:35 pm
Forum: Expansion Pack
Topic: A possible solution?
Replies: 5
Views: 2083

Re: A possible solution?

@another_commander Do you know (or know who to ask) if this is a Mac issue? Many of the oxp's Fleurghber has had problems with load fine on Windows 10. At a guess, I'd say the plist library used to build the Mac version is less forgiving than those used for Windows & Linux. I've run all the oxz's on...