Having a fit with the garbage collector in LÖVE. Thing is, I create a ton of garbage data in a short while. Like more than 700kb per second. This means the garbage collector keeps kicking in (which results in a few 'missing' frames even though it says 300+ fps).
It's with stuff like my vector multiplication where it goes wrong. Each time I do vector * number = new vector returned. So if I do stuff like position = position + velocity * deltatime (generates two new vectors, one after the multiplication and one after the adding) then the garbage really adds up.
How can I solve this best? Doing stuff like position.x = position.x + velocity.x * deltatime generates no garbage, but results in a lot of duplicate code in other cases.
[editline]06:37PM[/editline]
I'm guessing this is the result of attempting object oriented design in a language that isn't object oriented.
[editline]06:46PM[/editline]
It's running more smooth now... still a lot of garbage data though. Maybe another program was interfering with the performance. I'll just see how much of a problem it is in the long run.
[QUOTE=Robber;22145726]It's just a quick&dirty implementation of an idea I've had for some time, but could never implement it because I lacked the skills to make anything with the Android SDK. Expect some ugly code. [url=http://dl.dropbox.com/u/1106779/Tablet.zip]Download[/url]
Basically I'm just capturing a part of the screen, sending it to the Android device via WLAN and display it there. The Android app sends the mouse coordinates and if the mouse button is clicked to the desktop application.[/QUOTE]
Thanks!
I was thinking of porting this to iPhone, but it looks too hard. Plus some of the java libraries are a lot simpler with java compared to iPhone.
[QUOTE=Fox-Face;22144390]Made a simple program to test your reaction time
[IMG]http://img28.imageshack.us/img28/9134/reactiontimetest.jpg[/IMG]
There's a random interval that goes from 2500 to 5500 milliseconds, i used a timer for the interval and a Stopwatch to register the reaction time.[/QUOTE]
501ms?
What are you, disabled?
[QUOTE=Fox-Face;22144390]Made a simple program to test your reaction time
[IMG]http://img28.imageshack.us/img28/9134/reactiontimetest.jpg[/IMG]
There's a random interval that goes from 2500 to 5500 milliseconds, i used a timer for the interval and a Stopwatch to register the reaction time.[/QUOTE]
An example that isn't necessarily your best time?
What are you, disabled?
[QUOTE=i300;22146388]Thanks!
I was thinking of porting this to iPhone, but it looks too hard. Plus some of the java libraries are a lot simpler with java compared to iPhone.[/QUOTE]
Note to self: Don't try running this from the android simulator :3:
[QUOTE=jA_cOp;22148061]What are you, disabled?[/QUOTE]
[QUOTE=Jallen;22147774]What are you, disabled?[/QUOTE]
:raise:
He probably wasn't trying to show off his time.
[QUOTE=NovembrDobby;22150066]:raise:
He probably wasn't trying to show off his time.[/QUOTE]
Exactly my point :)
[QUOTE=NovembrDobby;22150066]:raise:
He probably wasn't trying to show off his time.[/QUOTE]
That's pretty obvious, anyone with an average response time of over 300ms is probably classifyable as disabled.
I wasn't being serious...
What's with the 'Ass-Holish' replies to his reaction times? :confused:
This is the programming forum.
And that calls for 'Ass-Holish' replies for no reason?
Apparently so.
It transforms humble and honest programmers into 24/7 hate machines. ´
Let's blow up some vans.
I was thinking of making something like this [url]http://www.codeproject.com/KB/directx/Overlay_Tools.aspx?fid=469064&df=90&mpp=25&noise=3&sort=Position&view=Quick&select=2292296[/url] But having some worries of if that could get you VAC/PB banned doing it that way... Could that? or is it Hooking/reading from memory that would get you banned?
[QUOTE=zachar543;22151612]I was thinking of making something like this [url]http://www.codeproject.com/KB/directx/Overlay_Tools.aspx?fid=469064&df=90&mpp=25&noise=3&sort=Position&view=Quick&select=2292296[/url] But having some worries of if that could get you VAC/PB banned doing it that way... Could that? or is it Hooking/reading from memory that would get you banned?[/QUOTE]
I highly doubt it, this is all client side. Plus it's exactly what Fraps does and nobody ever got banned for using Fraps.
Yeah, anti-cheat clients usually work mostly on the client-side, duh. I'm pretty sure reading from memory can get you banned, after all you might discover all kinds of things like player positions by doing that. Fraps probably hooks some D3D events to capture the screen.
I think he meant that Fraps shows you the current FPS in the corner.
[QUOTE=ZeekyHBomb;22151563]Apparently so.
It transforms humble and honest programmers into 24/7 hate machines. ´[/QUOTE]
I think it's a coffee and staying up 23 hours a day for most programmers that does it.
[QUOTE=Spoco;22152070]Yeah, anti-cheat clients usually work mostly on the client-side, duh. I'm pretty sure reading from memory can get you banned, after all you might discover all kinds of things like player positions by doing that. Fraps probably hooks some D3D events to capture the screen.[/QUOTE]
Actually, this raises a couple of good questions. Mumble hooks into game memory and withdraws player coordinates, pitch, yaw, and roll (where available) to do 3D positioning of voices. And yet I've never seen anyone VAC or PB banned for it. So I guess you would have to email valve or PB to get an answer on this one?
Oh right, it is certainly interesting. I have no idea where VAC draws the line.
I'm not disabled, there's something wrong with my program. I used a System.Diagnostics.Stopwatch, what could it be?
[IMG]http://img411.imageshack.us/img411/4521/whatn.jpg[/IMG]
[QUOTE=Spoco;22152070]Yeah, anti-cheat clients usually work mostly on the client-side, duh. I'm pretty sure reading from memory can get you banned, after all you might discover all kinds of things like player positions by doing that. Fraps probably hooks some D3D events to capture the screen.[/QUOTE]
What I meant is that it doesn't do any kind of packet disassembly or stuff related to the server. And it doesn't read memory, it's just a D3D hook.
How do programs like Riva Tuner and Fraps overlay full screen games? Anyone have any examples in C#? (Other than the one I had)
Working on a little asteroids games:
[img]http://dl.dropbox.com/u/3715122/asteroids.PNG[/img]
Haven't got collision yet working.
VAC only works when it detects a known hack, or a very popular method of hacking. Things like mumble won't ban you because it's not under a hack list.
[QUOTE=BAZ;22152889]VAC only works when it detects a known hack, or a very popular method of hacking. Things like mumble won't ban you because it's not under a hack list.[/QUOTE]
It also detects programs editing or changing .exes or .dlls.
Now I'm doing algorithm challenges on TopCoder.
Sorry, you need to Log In to post a reply to this thread.