3853 Commits

Author SHA1 Message Date
fkloft
79953c6494 [missions] show distance to mission (using distance-to-portal) 2015-04-12 02:07:14 +02:00
fkloft
735a0fee85 [missions] use webkit vendor prefix for transform (Android doesn't yet support unprefixed transforms) 2015-04-12 02:06:15 +02:00
fkloft
d7ce5b2c58 [mission] show mission type 2015-04-12 01:11:30 +02:00
fkloft
9b951fbc7c [missions] draw trace to portals, even if they aren't currently loaded 2015-04-12 00:34:17 +02:00
fkloft
8ac1305110 [missions] use DOM instead of HTML string manipulation 2015-04-12 00:18:41 +02:00
fkloft
8fff4e3be9 [missions] fix indentation; typo 2015-04-11 20:35:04 +02:00
fkloft
da0c866ac3 Remove call to plugin.drawTools.setOptions from bookmarks
- setOptions is usually only called once: when booting drawTools
- no need to call it repeatedly
- known to break a third party plugin (which we don't support, but no reason to make it hard)
2015-04-10 21:02:36 +02:00
Jon Atkins
47ccdf8218 Merge branch 'fkloft-dialogs' 2015-04-10 00:12:03 +01:00
Jon Atkins
a6f23ada6a Merge branch 'dialogs' of https://github.com/fkloft/ingress-intel-total-conversion into fkloft-dialogs 2015-04-10 00:08:22 +01:00
fkloft
acccccc968 Clean up previous commit 2015-04-10 01:06:30 +02:00
Jon Atkins
d99df3b24e Merge branch 'dialogs' of https://github.com/fkloft/ingress-intel-total-conversion into fkloft-dialogs 2015-04-09 23:56:46 +01:00
fkloft
9092a2a038 override default JS dialog handling (which is broken in Lollipop)
should fix #970
2015-04-10 00:48:56 +02:00
fkloft
06124dda83 Merge pull request #967 from imsaguy/patch-1
Basic style edits
2015-04-09 03:21:05 +02:00
Jon Atkins
1171651991 Merge pull request #976 from Meaglin/unaccounted
Fix some tiles not getting returned at all by map requests.
2015-04-08 18:08:18 +01: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
c7595c85f8 add missing <aside> needed for correct styles 2015-04-07 21:59:05 +01:00
Jon Atkins
977482a2f5 minor tweaks to wording - less verbose 2015-04-07 21:55:17 +01:00
Jon Atkins
9e6cdf93c7 Merge pull request #973 from Meaglin/missions
Full mission support
2015-04-07 21:52:07 +01:00
Jon Atkins
1fcf7c51a1 bump version after release 2015-04-04 01:14:26 +01:00
Jon Atkins
0bdfd84217 website: update for new release 2015-04-04 01:11:51 +01: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
e2cd19a9c3 commit missing MIN_ZOOM 2015-04-03 21:13:49 +01:00
Jon Atkins
3e7724afe6 first pass at changing map tile params for latest site update 2015-04-03 20:50:10 +01:00
Joseph Verburg
c6750a2615 Full mission support, uses proper requests and data to provide a mission interface just like the normal intel map. There are a few extras:
- Mark finished/visited waypoints.
- Mark finished missions.
- Allow event hooks :).
- Show portal status(level and health)
2015-04-03 14:12:10 +02:00
imsaguy
f6246f840c Basic style edits
This is just to cleanup the code to follow proper coding styles.
2015-03-31 15:33:11 -05: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
e7a136ec04 bump version after release 2015-03-20 23:33:11 +00:00
Jon Atkins
7e7622584d website: update for 0.22.1 release 2015-03-20 21:33:15 +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
522ef34f77 earth radius: change leaflet and leaflet-draw to use the radius value used by the s2 geometry library
this library is used in the ingress backend, so distance calculation, etc are far closer if we use the value from that
2015-03-12 20:47:05 +00:00
Jon Atkins
1dae89b4bc mission plugin: initial basic highlighter
debug highlighter: remove unknown_10/11 highlighters - not needed any more
2015-03-12 20:26:53 +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
d96ee8de50 distance-to-portal: fix case where current location is not set 2015-03-09 00:04:55 +00:00
Jon Atkins
7157eceae3 distance-to-portal plugin: integrate with portals list 2015-03-09 00:02:29 +00:00
Jon Atkins
052d208783 increase latlng to guid cache size 2015-03-07 16:55:01 +00:00
Jon Atkins
dd9f053ed3 Merge pull request #952 from eidyia/pr-guidCacheHWMbug
Eliminate CPU churning on cache highwater check
2015-03-07 16:38:54 +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
fkloft
e9d6436260 Support shonin shards
Fixes #951
2015-03-05 19:38:07 +01:00
Philipp Schaefer
9b530753d3 iitcm: update views on app start 2015-03-04 21:45:52 +01:00