Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

viewar-guide

Package Overview
Dependencies
Maintainers
6
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

viewar-guide - npm Package Compare versions

Comparing version 0.6.1 to 0.6.2

2

package.json
{
"name": "viewar-guide",
"version": "0.6.1",
"version": "0.6.2",
"description": "ViewAR Guide",

@@ -5,0 +5,0 @@ "main": "dist/viewar-guide.js",

@@ -91,4 +91,10 @@

const durationInSeconds = (timerInfo.frameLength - frameDifference) / 1000;
// const durationInSeconds = timerInfo.frameLength / 1000;
// Only delay if frameDifference is positive => tick will automatically wait if it's too short.
let durationInSeconds;
if (frameDifference > 0) {
durationInSeconds = (timerInfo.frameLength - frameDifference) / 1000;
} else {
durationInSeconds = timerInfo.frameLength / 1000;
}
poseQueue.push(Object.assign(new Pose(pose), {

@@ -98,3 +104,3 @@ durationInSeconds,

frameDifference += timerInfo.timeElapsed - timerInfo.frameLength;
frameDifference = timerInfo.timeElapsed - timerInfo.frameLength;
// console.log(`Tick ${tick} took ${frameDifference}ms too long.`, durationInSeconds);

@@ -101,0 +107,0 @@

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc