当前位置:网站首页>Unity WebGL RuntimeError: integer overflow
Unity WebGL RuntimeError: integer overflow
2022-08-11 05:02:00 【This is nine】
I found an integer overflow problem today while developing a web version project.
An error occurred running the Unity content on this page. See your browser JavaScript console for more info. The error was:
RuntimeError: integer overflow
A closer look is that there is a problem with WebAssembly instantiation.So I checked the packaged settings.
Let's take a look at WebAssembly in the packaging settingsArithmetic Exceptions
Contains an enumeration of different capture modes for WebAssembly code.
This enumeration is used in the WebGL platform to define the capture types used when performing arithmetic operations in WebAssembly code.
throw | WebAssembly code rounds very large floating-point numbers to int when dividing by zeroThrows an exception in other cases. |
ignore | This mode works by limiting floating point values to a reasonable range when performing arithmetic operationsAvoid pitfalls. |
Set to Ignore to ignore browser exception errors.
In this way, the error pop-up window will not pop up on the browser side and affect the program running logic.
边栏推荐
猜你喜欢
随机推荐
交换机和路由器技术-22/23-OSPF动态路由协议/链路状态同步过程
ALSA音频架构 -- aplay播放流程分析
2022新员工公司级安全教育基础培训(118页)
C语言题解:谁是凶手!
FPGA engineer interview questions collection 111~120
2022煤矿瓦斯检查考试题模拟考试题库及答案
4 Module 3: Literature Reading and Research Methods
Bubble sort and heap sort
关于CC 攻击
leetcode 9. Palindromic Numbers
智能指针笔记
K8s复习笔记7--Redis单机和Redis-cluster的K8S实现
网络协议1
c语言fprintf、fscanf、sscanf以及sprintf函数知识要点总结
Project Practice Lecture 27: Application of Status Mode in Duplicate Brands
The basics of binary heap~
Word2021 中的图片保存后就变模糊了
How IP-Guard prohibits running U disk programs
视觉任务种常用的类别文件之一json文件
MQ框架应用比较