Path: chuka.playstation.co.uk!news From: "Peter Armstrong" Newsgroups: scee.yaroze.freetalk.english Subject: Re: negative scrolling on homebrew map routine - need help!! Date: Tue, 20 Mar 2001 19:34:49 -0000 Organization: PlayStation Net Yaroze (SCEE) Lines: 29 Message-ID: <998bjc$7jl11@www.netyaroze-europe.com> References: <3AAF7BB2.B427AED3@harbinger.com> <98o38v$ij81@www.netyaroze-europe.com> <98p3qp$rms2@www.netyaroze-europe.com> <98t840$6f5@www.netyaroze-europe.com> <99057g$3ok7@www.netyaroze-europe.com> <3AB6404F.65C9AF1C@harbinger.com> <9961fn$7jl4@www.netyaroze-europe.com> <99624q$7jl5@www.netyaroze-europe.com> <9963bb$7jl6@www.netyaroze-europe.com> <997j6l$7jl8@www.netyaroze-europe.com> <3AB774C7.6B4D8F95@harbinger.com> NNTP-Posting-Host: 195.149.22.27 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 "Andrew Partington" wrote > > Last night I attempted using VSyncCallback() for the first time to attempt to > get more raster time (as explained in the Net Yaroze FAQ), but I couldn't get it > working [so I went away and had a look at some other optimisation measures > instead, none of which seemed to have much effect :( ] > > I had something like: > > (in my globals section of my code) > volatile int waitVSync = 0; There are problems accessing global variables from within the callback function. Try declaring your variable as __declspec(bss) volatile int waitVSync = 0; This should work. There's also another method, which involves restoring the gp register value, check out the CW doc Targeting Net Yaroze, page 66/67 for more info. Peter