Comments (9)
This is my most expensive resource at around 0.30ms - realistically it should be zero while outside of a vehicle.
Then how do you expect the resource to know if you've entered a vehicle if it can't do any checks when the player is not inside a vehicle?
That wouldn't work. Besides, 0.3ms is very, very slight. You're not going to get much lower than that for a c# resource.
I created a testing resource and it constantly had around 0.7ms when some dependencies where loaded, and 0 Tick functions were running.
You're simply not going to achieve 0ms delays for this kind of resource.
from frfuel.
Thanks, I'll look into it.
from frfuel.
Frfuel gives a resource time warning on clients since the FiveM client update.
Is this still happening? I've not been able to reproduce this while testing...
from frfuel.
I've noticed it too but rarely.
from frfuel.
As we were unable to reproduce it, im gonna ask you guys: is it critical enough to consider this an issue? If yes then I'll keep it open and hope someday it will either reproduce under some circumstances or be gone completely :)
from frfuel.
I do feel this is a larger issue on low to mid range computers. I've been notified several times since my last reply. I personally believe it has to do with all the code being ran nearly non stop while in a vehicle. Such as get and display fuel level and set new fuel level. In reality if you were unable to reproduce the issue I would recommend closing this unless someone is able to get more information.
Thanks
from frfuel.
I personally believe it has to do with all the code being ran nearly non stop while in a vehicle. Such as get and display fuel level and set new fuel level.
Unfortunately, this is how it works, you have to do all these things on each tick (read frame), just to keep things in order on the screen. That's how original scripts work.
What's interesting though is where exactly it can stutter.
from frfuel.
I personally believe it has to do with all the code being ran nearly non stop while in a vehicle. Such as get and display fuel level and set new fuel level.
That could be the issue, however there's no way around this as you kind of need to know your fuel level when you're inside the car. Besides, drawing it on the screen needs to be ran non stop anyway. edit: ninja'd by thers
from frfuel.
This is my most expensive resource at around 0.30ms - realistically it should be zero while outside of a vehicle.
from frfuel.
Related Issues (20)
- Hud bar position HOT 3
- How can I translate?
- Allow control from other resources HOT 9
- Ultra Wide Monitor support HOT 3
- Move gas stations locations to JSON config
- Comet5 Fuel Consumption (Maybe others) HOT 1
- Feature request: Add charging stations for electric vehicles HOT 1
- Missing frfuel.net.dll HOT 1
- fuel not syncing when players inside vehicle HOT 3
- problem with exports.. HOT 1
- missing frfuel.net.dll HOT 1
- [Suggestion] Add Sputter Config Option
- Fuel Not Leaking HOT 2
- Compatibility with VehicleControl HOT 3
- Reduce the number of gas station ? HOT 1
- Manual refuel seems to not trigger event "addedFuel" HOT 4
- Installing issues. HOT 1
- Errors FRFuel.cs compiling HOT 1
- When vehicle get out of gaz it doesn't stop HOT 1
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 frfuel.