vue集成threejs后,web页面加载模型之后,FPS值在10以下;查阅资料是因为;声明的部分threejs的对象不可以放在data中;否则就会帧数特别低;
以下为修改之后代码
<template>
</template>
<script>
import * as THREE from "three";
import {
GLTFLoader} from
vue集成threejs后,web页面加载模型之后,FPS值在10以下;查阅资料是因为;声明的部分threejs的对象不可以放在data中;否则就会帧数特别低;
以下为修改之后代码
<template>
</template>
<script>
import * as THREE from "three";
import {
GLTFLoader} from