]> gerrit.simantics Code Review - simantics/platform.git/commit
HistorySampler.sample(HistorySamplerItem2, ...) now uses mipmapped data
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Mon, 18 Jun 2018 10:58:54 +0000 (13:58 +0300)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Fri, 3 Aug 2018 12:35:20 +0000 (15:35 +0300)
commit3ae012ae3916941e3ff9a2c4cc602e6f5c5b54eb
treec0da85c6341dccb84a334cb321b3889373b375ba
parente53d48782e7de740d56b779666c79c22d1fa9fc5
HistorySampler.sample(HistorySamplerItem2, ...) now uses mipmapped data

Implemented selection of sampled history data source based on the
seconds/pixel (= timeWindow / maxSamples) ratio provided to the sampler.
This is one way to attempt not sampling too much data for trend views
that cannot inherently handle large amounts of data.

gitlab #9

Change-Id: I8c67068d6e832d33d4ac3adef270d31f1cb0e722
(cherry picked from commit e3940e67813aa0988bdd0fe6161500034e6e7518)
bundles/org.simantics.history/src/org/simantics/history/HistorySampler.java
bundles/org.simantics.history/src/org/simantics/history/HistorySamplerItem2.java