1219 Commits

Author SHA1 Message Date
Jon Atkins
1fb27a75c4 pass loaded portal details via a hook into the portal render code - so placeholder portals get updated (highlighters, etc) as you view them 2015-06-29 02:51:13 +01:00
Jon Atkins
b51052ca0b remove 'show-more-portals' config case - not currently needed, so not messing with zoom level is more stock-like 2015-06-28 21:57:42 +01:00
Jon Atkins
e0e6fd5c48 don't remove portals by level when starting a render pass
- unclaimed are shown when we ask for L1
- helps preserve more data as you zoom out and links create 'placeholder' portals we already have more data for
2015-06-28 21:56:42 +01:00
Jon Atkins
8f1759d7c3 allow portal highlighters for placeholder portals - several (e.g. uniques) work just fine
fix several other highlighters to check for required data on portals
2015-06-28 21:49:02 +01:00
Jon Atkins
00b546cb98 placeholder portals created from link ends
surprisingly few issues, but i'm sure quite a few plugins break badly
2015-06-28 19:14:17 +01:00
Jon Atkins
701f09db58 start of work on placeholder portals from link data
not yet working...
2015-06-27 05:44:54 +01:00
Jon Atkins
f3190731d6 remove the 'hack' that ignored portals below the selected level limit - not needed now Niantic have fixed the mission portal issue
increase the number of items rendered in the render queue batches - should make IITC render a bit faster, especially now that the portals have gone and instead there's a fair amount of duplicate data from links/fields across multiple data tiles
2015-06-27 01:29:06 +01:00
Jon Atkins
5da190862e niantic brought back the 'no portals, link length limits' for zooms up to 15 again....
also, better warning when failing to extract tile parameters from stock - as if this fails it's probably because the values have changed and IITC will break
2015-06-26 23:11:19 +01:00
Jon Atkins
6718e0d777 revert the hacky 'level 9999' thing - it hid that Niantic reverted the changes
remove the link distance thing - no longer needed
2015-06-26 02:24:56 +01:00
Jon Atkins
40b92235ea remove portals from the map sooner when the server wouldn't return them
bit hacky... but will do for now until I think of a good way of handling things with the recent changes
2015-06-26 02:15:09 +01:00
Jon Atkins
9c487a3001 and yet another update to the fallback defaults....
maybe Niantic should have load-tested the best values in dev before releasing into production, rather than repeatedly changing it so many times?
or at least made it completely controlled by server-side code, so no client updates needed for every experimental change...
2015-06-26 02:13:53 +01:00
Jon Atkins
bb29578c78 more updates chasing reprated Niantic updates
debug function to dump out the details of each zoom level tile parameters
change tile params 'noPortals' to 'hasPortals'
2015-06-25 23:05:04 +01:00
Jon Atkins
38870aba63 more niantic tweaks to tile params, so defaults updated
also fix status bar bug introduced in previous commit
2015-06-25 22:22:49 +01:00
Jon Atkins
9ba440f70d move the minLinkLength stuff into map_data_calc_tools.js - makes more sense there, and ready to be used elsewhere if needed 2015-06-25 21:46:28 +01:00
Jon Atkins
58a512823f quick-n-dirty display of min link length instead of portal level for zoom levels <= 14
fix detection of tiles per edge params - array was shorter than before
2015-06-25 20:31:00 +01:00
Jon Atkins
42d5eb4e2f fix for fallback tile sizes - auto-detection broke
will get things working for now...
2015-06-25 20:05:53 +01:00
fkloft
3396cc7a27 Set title in genFourColumnTable 2015-06-23 20:05:35 +02:00
fkloft
a7387e3f4b Support for ULTRA_LINK_AMPs 2015-06-23 20:05:35 +02:00
Jon Atkins
bd13278ec0 add comments concerning artifact changes - will double check once the flaky niantic update sorts itself out 2015-06-13 10:20:16 +01:00
Jon Atkins
34d13f6559 tweaks for latest niantic update
iitc detects the correct map params anyway, but warns when fallback values are different
also, new data in portal entities - unknown12 (only seen 'null') and index 13 (portal timestamp)
the timestamp is also in the portal details, so this will be handy
2015-06-11 22:35:57 +01:00
Jon Atkins
44162172a9 artifact details are now returned in the selected portal details - parse them
[not yet used anywhere though...]
2015-05-29 05:35:08 +01:00
Jon Atkins
238bef037b fix for niantic site update 2015-05-27 - botguard has been removed! 2015-05-27 07:08:43 +01:00
Jon Atkins
f4f656dcd2 artifacts: comment concerning the new API added to stock intel. not yet used by stock as far as I can tell, and the existing API still exists and is used... 2015-05-22 01:49:01 +01:00
Jon Atkins
aad6f3cd70 add callback to create point features for search results - the default leaflet icon won't work (and would be the wrong colour anyway)
fix #998
2015-05-14 16:41:18 +01:00
Jon Atkins
5b5c6d5947 ensure there's a delay after an empty response from the server
also, shorten error delays from 10 seconds to 5 - no need to be that slow...
2015-05-14 16:32:48 +01:00
Jon Atkins
2fce62117c restopre 'show more portals', but at one level of zoom boost instead of two 2015-05-06 18:28:08 +01:00
Jon Atkins
bb5d263a73 allow max zoom of 21 - two portals 18cm apart only show at z=21 2015-05-06 17:08:20 +01:00
Jon Atkins
d9abda87f3 remove confirm prompt on server-returned javascript
more people ask about what this prompt is about, and answering 'no' generally breaks botguard at this point.

if you don't like the possibility of IITC running server-returned code, then disable the botguard interface completely - we're already running it on page load, so there's no more risk doing it here too
2015-04-27 21:56:23 +01:00
Jon Atkins
439fcae210 artifacts: lightman shards (guessed - but image URLs work so probably OK) 2015-04-22 02:48:08 +01:00
fkloft
2933f596e9 [core] small changes to cookie handling
- dynamic cookie expiration date
- remove cookie cache (which is not updated when a cookie is set)
2015-04-13 21:58:05 +02:00
Joseph Verburg
de5b689ee6 Added remove events for portals/links/fields. 2015-04-08 17:03:53 +02:00
Joseph Verburg
aa48e18639 Fix some tiles not getting returned at all by map requests, causing a tile to never be requeued. 2015-04-08 16:36:07 +02:00
Jon Atkins
658344a832 additional message asking users to direct their 'show more portals' issues towards niantic 2015-04-04 01:05:30 +01:00
Jon Atkins
2e906b41f0 as well as 9000 and 36000, allow the interbediate 18000 when detecting map tile params
this value was live for a short period of time, and they may revert back to it
2015-04-03 22:35:05 +01:00
Jon Atkins
b4f9c3e2fe add some initialisation for deciding if to use detected tile params or those embedded in the code
console warnings when it fails to detect values from stock, or the internal defaults don't match
disable show-more-portals plugin if it would result in more requests - damn niantic!
2015-04-03 21:20:36 +01:00
Jon Atkins
3e7724afe6 first pass at changing map tile params for latest site update 2015-04-03 20:50:10 +01:00
Jon Atkins
5845c37daf change tile loading delays to zero. stock intel doesn't wait, and the current tile params for further out zooms need a large number of requests, making any delays here add up quickly 2015-03-28 18:32:40 +00:00
Jon Atkins
96190be481 extract TILES_PER_EDGE and ZOOM_TO_LEVEL from stock intel
Niantic have been tweaking the values after server overload during Shonin - I expect them to change again...
2015-03-28 18:27:06 +00:00
Jon Atkins
a169176bad map params adjusted due to server overload of shonin anomaly 2015-03-28 16:27:48 +00:00
Jon Atkins
5e8ddb2344 move portal entity array decoding into one place, and share the code for the common array elements
TODO: move link and field entities into here too
2015-03-20 20:54:44 +00:00
Jon Atkins
5298c98fdd minor api change for chat callbacks, and plugins fixed to use the new changes
(which broke after today's niantic site update anyway)
2015-03-20 20:53:45 +00:00
fkloft
d98546a173 fix chat after intel change 2015-03-20 21:30:52 +01:00
Jon Atkins
c5b068eda1 ignore portals returned in the map data that are below the portal level requested
this shouldn't be needed - the stock intel map completely ignores these so they shouldn't be returned - but since niantic added mission portals to the map they bypass all portal level filtering code, for some reason
2015-03-12 21:33:22 +00:00
Jon Atkins
2f67616c5d unknown_10/11 flags - renamed to the mission status they represent 2015-03-12 20:26:15 +00:00
Jon Atkins
052d208783 increase latlng to guid cache size 2015-03-07 16:55:01 +00:00
eidyia
fe19227839 Eliminate CPU churning on cache highwater check
On older machines loading high portal dense areas this check is
using 70-90% of CPU in Object.keys(cache).length, leading to
resource starvation, and refresh times up to 10 times longer.

The LRU cache high-water mark is checked every time we receive portal
state from the intel servers to see if we need to do GC. In
my case this peaks out  500-1000 portal adds per second on
an aging laptop with the existing code with chrome-unstable,
and minimal IITC plugins.  GC itself (ignoring v8 GC) was only
taking 15ms, amortized to about 15usec a portal.

Unforutnately the Object.keys(cache).length check was taking
2-3ms each portal add, and 70-90% of the main thread was spent
there, grinding older machines to a halt.

I've just added a counter to track adds to the cache, and am
updating it with the real cache size on GC (the two checks
are almost always identical in higher density areas, and
won't lead to performance issues if cache adds are over-
estimated).

Effects:
 - pushPortalGuidPositionCache goes from using the majority
   of CPU when loading dense areas to almost nothing.

 - Older machines can actually view western europe without
   grinding the browser to a halt.

 - the cache itself is now hitting GC_LIMIT in less than
   100ms on my old laptop.  (I think increasing GC_LIMIT
   to 80,000 and GC_KEEP to 40,000 is going to put less
   load on the Javascript engine GC, and have the cache
   be useful still, but I left that out of the PR as it's
   slightly more subjective)

 - v8's GC is being slammed slightly less often than normal
   (it's still thrashing, but this isn't the main culprit)

The patch has been tested by about half a dozen people
using different blends of IITC plugins on both Chrome,
Firefox and across different OSs and with very different
hardware. Reports ranged from minor to (more often) huge
improvements in load speed and responsiveness in high
density areas.
2015-03-08 03:01:54 +11:00
Jon Atkins
b6c89c9575 tooltip tweaks - slightly cleaner this way, i think 2015-03-05 18:56:23 +00:00
Jon Atkins
54a6861aef code to easily disable botguard, if desired
not recommended for general use, but can be good for occasional troubleshooting
2015-03-05 18:55:28 +00:00
Jon Atkins
cabe7692fe tweaks to shonin shards 2015-03-05 18:54:53 +00:00
Jon Atkins
4336c2b29c Merge branch 'master' of https://github.com/jonatkins/ingress-intel-total-conversion 2015-03-05 18:49:14 +00:00