Comments (3)
I have determined that in commit d380061, the build before the behavior was changed, the perceived delay at run time was not due to parsing but to the number of init statements (as they were bottlenecked by how often update()
got called) that were executed before the first block.
A slightly more noticeable wait can be experienced at the beginning on a level when the script is parsed in the Awake()
method of the RenPyDisplay
class, but only when the script gets noticeably long (~10,000 lines). In any case, a small wait at the beginning of the level is preferable to a small wait right before the player gets to talk to someone.
In the most recent commit (2d3a791), a slightly shorter, but not significant, delay can be felt when trying to play the level.
The impact at run time for parsing a script seems to be negligible. Switching to parsing the script at runtime will reduce the file size and also make the code easier to maintain as less objects would need to deal with the ScriptableObject API.
from unity-raconteur.
Commit 801c4b8 accidentally referred to this issue when it meant to close issue #42.
from unity-raconteur.
Due to the negligible performance impact and increased API complexity, it would be better to parse at run time.
from unity-raconteur.
Related Issues (20)
- RenPyPlay does not recognize the voice channel
- Parse the Ren'Py script at run time instead of at import time
- Twine if macro
- Twine else macro
- Twine set macro
- Twine remember macro HOT 1
- Twine print macro
- Twine display macro
- Twine actions macro
- Twine choice macro
- Twine nobr macro
- Twine silently macro
- Twine back macro HOT 1
- Twine return macro HOT 1
- Add boolean operators to Expression Parser
- Parsing variables with substring "to" is inaccurate
- There is not an additional space created when a link is created HOT 1
- Ren'Py if statement evaluation fails with no-ops
- Ren'Py audio missing if added after script is imported
- Ren'Py return statement isn't handled correctly
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from unity-raconteur.