Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vehicle hashmap improvements #853

Closed
DorpsGek opened this issue Jun 10, 2007 · 7 comments
Closed

Vehicle hashmap improvements #853

DorpsGek opened this issue Jun 10, 2007 · 7 comments
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) patch from FlySpray This issue is in fact a Patch, but imported from FlySrpay

Comments

@DorpsGek
Copy link
Member

madman2003 opened the ticket and wrote:

The original version of this patch came from http://www.tt-forums.net/viewtopic.php?t=27925
It came from the gui.diff version (the one storing VehicleID's, which is better for memory usage than pointers).

I modified some parts that seemed like magic to me.

I can provide profiling data if needed.

What further changes would be needed to get this included in the trunk?

Attachments

Reported version: trunk
Operating system: All


This issue was imported from FlySpray: https://bugs.openttd.org/task/853
@DorpsGek
Copy link
Member Author

SmatZ wrote:

Well, atm it needs to solve problem with overtaking, if you have not done it yet. Really, I didn't mean to subscribe it officially yet.


This comment was imported from FlySpray: https://bugs.openttd.org/task/853#comment1308

@DorpsGek
Copy link
Member Author

SmatZ wrote:

Honestly, I am not happy you took my patch, did some changes and subscribed it here without consultation with me. I mentioned there is a problem with vehicle overtaking that must be solved, so why are you so in hurry with publishing?


This comment was imported from FlySpray: https://bugs.openttd.org/task/853#comment1309

@DorpsGek
Copy link
Member Author

madman2003 wrote:

Could you describe the problem, because road vehicles do overtake as far as i can see.


This comment was imported from FlySpray: https://bugs.openttd.org/task/853#comment1310

@DorpsGek
Copy link
Member Author

madman2003 wrote:

Sorry for this, consider this patch withdrawn, until this problem is solved.


This comment was imported from FlySpray: https://bugs.openttd.org/task/853#comment1311

@DorpsGek
Copy link
Member Author

madman2003 wrote:

This should fix the problem with buses, the problem is that the new hash map does not include results from nearby tiles, so i added that in the RoadVehFindCloseTo() function.

@smatz: does this solve your problems too?

Attachments


This comment was imported from FlySpray: https://bugs.openttd.org/task/853#comment1314

@DorpsGek
Copy link
Member Author

SmatZ wrote:

Strange you didn't encounter problems with overtaking, it happens very often. See attached file.
Patch shouldn't be commited until RoadVehController() is digged into and all possible problems are solved!

What I really dislike about it now: you took the unfinished patch, did some changes without understanding how the code works, and published it here.
I think you should give me some recommendations instead of doing messy updates and publishing the patch, with you as the publisher.

(you invited problems by removing 'ssign=false', by changes in 'UpdateVehiclePosHash()')
Well, I could comment code better, but I didn't mean to publish it yet.
(anyway, the changes you made seem obviously problematic for me - maybe you could comment them to make it clear they won't invite eg. vehicles in corners of viewport not drawn?)

Please, wait until I submit my patch, and then submit your updates. You can help me with the patch, but not this way!
Sadly, I do not have time to spend writing code atm.

Attachments


This comment was imported from FlySpray: https://bugs.openttd.org/task/853#comment1315

@DorpsGek
Copy link
Member Author

Rubidium closed the ticket.

Reason for closing: Out of date

Something else with the same (or even better) characteristics has been committed to trunk (r10111).


This comment was imported from FlySpray: https://bugs.openttd.org/task/853

@DorpsGek DorpsGek added Core flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) patch from FlySpray This issue is in fact a Patch, but imported from FlySrpay labels Apr 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) patch from FlySpray This issue is in fact a Patch, but imported from FlySrpay
Projects
None yet
Development

No branches or pull requests

1 participant