Re: Memory usage in Python?

2019-09-05 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Re: Memory usage in Python? Pickle won't be the only thing I used when exporting. I am aware of the possible security issues. Thanks for the tip, though.What do you mean by "loading too large of a map?" As far as I know, memory limit is the only thing I should be concerned a

Re: Memory usage in Python?

2019-09-05 Thread AudioGames . net Forum — Developers room : NicklasMCHD via Audiogames-reflector
Re: Memory usage in Python? Hi.@amerikranian what you also want to take into consideration is that you don't load everything in at once (if the map is large enough, it could crash your game).Another thing, I also would recomend is not to pickle it but use json or something similar, d

Re: Memory usage in Python?

2019-09-04 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Re: Memory usage in Python? Thank you you two.  The example confirmed what I have found when searching, and  I did not think about the possible error, So you have saved me a bit of a headache. URL: https://forum.audiogames.net/post/459681/#p459681 -- Audiogames-reflector mailing list

Re: Memory usage in Python?

2019-09-04 Thread AudioGames . net Forum — Developers room : pauliyobo via Audiogames-reflector
Re: Memory usage in Python? Yeah, I actually hsould have, and due to time I rushed sorry for that . URL: https://forum.audiogames.net/post/459679/#p459679 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin

Re: Memory usage in Python?

2019-09-04 Thread AudioGames . net Forum — Developers room : Hijacker via Audiogames-reflector
Re: Memory usage in Python? Thats exactly what I was recommending, I just wanted him to search a bit for himself . I however would consider backing that operator up with some type checking, or at least exception checking (just following the etafftp pattern), cause otherwise the whole thing

Re: Memory usage in Python?

2019-09-04 Thread AudioGames . net Forum — Developers room : Hijacker via Audiogames-reflector
Re: Memory usage in Python? Thats exactly what I was recommending, I just wanted him to search a bit for himself . I however would consider backing that operator up with some type checking, or at least exception checking (just following the etafftp pattern), cause otherwise the whole thing

Re: Memory usage in Python?

2019-09-04 Thread AudioGames . net Forum — Developers room : pauliyobo via Audiogames-reflector
Re: Memory usage in Python? Alternatively, python provide a set of methods in classes called dunder methods. Those methods allow you to override operators of your classes. In this case, you'd want to override the equals operator and do something like the following:class map: 

Re: Memory usage in Python?

2019-09-04 Thread AudioGames . net Forum — Developers room : pauliyobo via Audiogames-reflector
Re: Memory usage in Python? Alternatively, python provide a set of methods in classes called dunder methods. Those methods allow you to override operators of your classes. In this case, you'd want to override the equals operator and do something like the following:class map: 

Re: Memory usage in Python?

2019-09-04 Thread AudioGames . net Forum — Developers room : Hijacker via Audiogames-reflector
Re: Memory usage in Python? Hi,yeah, that is a way, but overloading the map operator would be more efficient. By doing that and accepting a string as comparable, checking if the string equals the map name, you can use the built-in methods of python lists to find the map you're lookin

Re: Memory usage in Python?

2019-09-04 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Re: Memory usage in Python? I haven’t considered that, mostly because I did not ever try to override default operators. I also am not totally sure what do you mean by saying comparison method that checks for map names.  I was just going to create a function that  loops through the list and

Re: Memory usage in Python?

2019-09-04 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Re: Memory usage in Python? I haven’t considered that, mostly because I did not ever try to override default operators. I also am not totally sure what do you mean by saying comparison method that checks for map names.  I was just going to create a function that  loops through the list and

Re: Memory usage in Python?

2019-09-04 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Re: Memory usage in Python? I haven’t considered that, mostly because I did not ever try to override default operators. URL: https://forum.audiogames.net/post/459644/#p459644 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin

Re: Memory usage in Python?

2019-09-04 Thread AudioGames . net Forum — Developers room : Hijacker via Audiogames-reflector
Re: Memory usage in Python? First, the maximum memory usage of Python is just the same as for any other process running under operating systems, means 3,2 GB when x86 and alot more when x64. I however don't believe that your dictionary will grow that large. Why don't you stor

Memory usage in Python?

2019-09-04 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Memory usage in Python? I have posted a topic a while back that asked about the best way to save items in Python. So far, I believe that I will use the "visited" approach, meaning every time the player leaves or enters a map, several things will happen.1: The player enters and t

Memory usage in Python?

2019-09-04 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Memory usage in Python? I have posted a topic a while back that asked about the best way to save items in Python. So far, I believe that I will use the "visited" approach, meaning every time the player leaves or enters a map, several things will happen.1: The player enters and t